Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 287 Bytes
import json
# sudo pip install request
import requests



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

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