Submit The Request

View as MarkdownOpen in Claude

After calculating our Authorization header creating our headers, we can submit the request. As mentioned in our Endpoints section, all content would then be submitted as JSON formatting. Examples in the respective languages have been included for our example.

1json_data = {"publish":True, "compete":True}
2
3# end request to /ssodh/init, print request and response.
4init_request = requests.post(url=url, headers=headers, json=json_data)
5if init_request.status_code == 200:
6 print(init_request.content)