[SOLVED] Python POST request
Posted: Mon Dec 27, 2021 01:49
Hello,
I made a simple script with python to call some clips with a POST request.
Here my code:
The print output is
204 No Content
but the clip n.2 is not connected.
If I use "select" instead of "connect" it works:
If I try with the API page it works (where I get the url).
Where's the problem? I'm using python over terminal on a Mac iOS. Thank you
I made a simple script with python to call some clips with a POST request.
Here my code:
Code: Select all
import requests
r = requests.post("http://192.168.0.11:8080/api/v1/composition/layers/1/clips/2/connect")
print(r.status_code, r.reason)
204 No Content
but the clip n.2 is not connected.
If I use "select" instead of "connect" it works:
Code: Select all
http://192.168.0.11:8080/api/v1/composition/layers/1/clips/2/select
Where's the problem? I'm using python over terminal on a Mac iOS. Thank you