Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 323 Bytes

File metadata and controls

17 lines (13 loc) · 323 Bytes
import json
# sudo pip install request
import requests



pid = 'DK5QPID'
res_shadows = requests.get(backendUrl + '/api/1.0/signals' + '/pid/'+ pid + '/shadows', headers=headers)

# checking the response
if res_shadows.ok:
    print "OK"
    print res_shadows.text
else:
    print "Error: " + res_shadows.text