![]() |
| unable to generate authentication key - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: unable to generate authentication key (/thread-26807.html) |
unable to generate authentication key - lokamaba - May-14-2020 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 # API URL apiURL = "https://services.fiberlink.com/auth-apis/auth/1.0/authenticate/1008860" 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 = requests.post(apiURL, headers=headers, data=token_dict) print(response.text) |