I wrote a simple code to login using API, but received a status_code 415. My code is below:
>>> import sys, json, requests
>>> print("Create a HTTP Session...")
Create a HTTP Session...
>>> s = requests.session()
>>> print("Status Code: %s " % r.status_code)
Status Code: 415
415 status_code is HTTP Error 415 Unsupported media type
The authenticationkey is correct.
Can anyone fix this?
Thanks and Regards!