Advertisement
gabolato

Untitled

Jun 28th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.57 KB | None | 0 0
  1.         oauth_access_token = request.GET.get('oauth_token', '')
  2.         oauth_access_verifier = request.GET.get('oauth_verifier', '')
  3.         authentication = Authentication.objects.get(upwork_token=oauth_access_token)
  4.         authentication.upwork_verifier = oauth_access_verifier
  5.         authentication.save()
  6.         user = authentication.user
  7.         client = upwork.Client(oauth_access_token, oauth_access_verifier) # <-- I'm not using my own client and secret cause I want my user's teams not mine
  8.         client.hr.get_teams() # <--- it returns "Key and secret must be set."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement