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