Delet a video by json
Posted: Thu May 14, 2020 11:39 am
Hi i like to do delet recorded videos by a json command
Blue Iris send told me with {delclip:@record#} it should work.
The number i record# i get back from a get request when i stop recording a video.
What i need more is that i probably have to give a authentification with as well.
I'm stuck with the command lin
Do you know how the code for python should be?
Am I on the right way with this one?:
URL = 'http://IP-Adress/admin?user=username&pw=password'
data = {'delclip':'@429152'}
r = requests.get(URL, headers={'Content-Type': 'application/json' }, json=data)
a = r.json()
print('\nResponse: \n')
print(a)
with that one i get an error back.. see picture..
Tanks for help
Blue Iris send told me with {delclip:@record#} it should work.
The number i record# i get back from a get request when i stop recording a video.
What i need more is that i probably have to give a authentification with as well.
I'm stuck with the command lin
Do you know how the code for python should be?
Am I on the right way with this one?:
URL = 'http://IP-Adress/admin?user=username&pw=password'
data = {'delclip':'@429152'}
r = requests.get(URL, headers={'Content-Type': 'application/json' }, json=data)
a = r.json()
print('\nResponse: \n')
print(a)
with that one i get an error back.. see picture..
Tanks for help