Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oauth_access_token = request.GET.get('oauth_token', '')
- oauth_access_verifier = request.GET.get('oauth_verifier', '')
- authentication = Authentication.objects.get(upwork_token=oauth_access_token)
- authentication.upwork_verifier = oauth_access_verifier
- authentication.save()
- user = authentication.user
- 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
- client.hr.get_teams() # <--- it returns "Key and secret must be set."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement