Advertisement
Jexal

88028fca-e1a0-4257-be26-fa854db38a5e

Jan 18th, 2025
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. verifier_code = 'your_verifier_code'
  2.  
  3. response = requests.post('https://getpocket.com/v3/oauth/authorize',
  4.                          headers={'Content-Type': 'application/x-www-form-urlencoded'},
  5.                          data={'consumer_key': consumer_key, 'code': verifier_code})
  6.  
  7. access_token = response.json()['access_token']
  8. print(f'Access Token: {access_token}')
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement