Advertisement
Guest User

Untitled

a guest
May 31st, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import requests
  2. from requests.auth import HTTPBasicAuth
  3.  
  4. url = "API Url"
  5.  
  6. payload = "username=***************&password=************&grant_type=password&scope=*"
  7.  
  8. x= "clientid"
  9. y= "clientsecret"
  10. authorization = requests.get('https://unityapi.webrootcloudav.com/auth/token', auth=(x, y))
  11.  
  12. print(authorization.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement