Python Forum

Full Version: unable to generate authentication key
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Team,

I am new to python.
By using web API trying get the authentication key. Could you please please me on this.
Request type is post
Response is in XML format.

import requests
apiURL = ""

token_dict = {"billingID": "1008860",
"platformID": "3",
"appID": "com.1008860.api",
"appVersion": "1.0",
"appAccessKey": "xxxxxx",
"userName": "xxxxxxxx",
"password": "xxxxxxxx"
headers = {"Content-Type": "application/xml"}
response =, headers=headers, data=token_dict)