Having trouble writing python code for custom remote for OpenLP

I'm trying to create a program to control OpenLp and eventually OBS and a digital mixer.

I'm stuck trying to communicate with Openlp via the http api, everything I try gives a response of 404.

The code below is just one example. Can anyone provide a clue as to what could be wrong.

I am using 2.4.6


# importing the requests library

import requests

# api-endpoint

URL = "http://127.0.0.1:4316/api/v2/controller/live-items"

# sending get request and saving the response as response object

r = requests.get(URL)

print ( r)


Output is: <Response [404]>

Comments

Sign In or Register to comment.