Integration with API Key and Secret
For Read-only HTTP Requests
import requests
import json
s = requests.Session()
API_KEY = 'ky_*****'
API_SECRET = 'sc_****************'
def basic_get(self, path):
resp = s.get(common.host + path, headers={
'X-OW-APIKEY': API_KEY,
})
print(resp.status_code)
print(json.dumps(resp.json(), indent=4, ensure_ascii=False))import requests
import json
s = requests.Session()
API_KEY = 'ky_*****'
API_SECRET = 'sc_****************'
def basic_get(self, path):
resp = s.post(common.host + path, headers={
'X-OW-APIKEY': API_KEY,
})
print(resp.status_code)
print(json.dumps(resp.json(), indent=4, ensure_ascii=False))For Requests That May Change Things
Last updated