Created
February 11, 2016 09:42
-
-
Save Rajeev69/d52bf134280efba403d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import ssl | |
import requests.packages.urllib3 | |
requests.packages.urllib3.disable_warnings() | |
# posting data to server | |
post_url = 'https://api.litzscore.com/rest/v2/auth/' | |
def app_details(access_key,secret_key,app_id): | |
params = {"access_key": access_key, "secret_key": secret_key, "app_id": app_id, "device_id": "112233"} | |
response = json.loads(requests.post(post_url, params=params).text) | |
# print response | |
if 'auth' in response: | |
token = response['auth']['access_token'] | |
return token |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment