Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- verifier_code = 'your_verifier_code'
- response = requests.post('https://getpocket.com/v3/oauth/authorize',
- headers={'Content-Type': 'application/x-www-form-urlencoded'},
- data={'consumer_key': consumer_key, 'code': verifier_code})
- access_token = response.json()['access_token']
- print(f'Access Token: {access_token}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement