Skip to content

Instantly share code, notes, and snippets.

@Rajeev69
Created February 11, 2016 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rajeev69/d52bf134280efba403d5 to your computer and use it in GitHub Desktop.
Save Rajeev69/d52bf134280efba403d5 to your computer and use it in GitHub Desktop.
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