@@ -71,8 +71,8 @@ Workflow example showing use of both OAuth1 and OAuth1Session
7171
7272 >>> # Using OAuth1Session
7373 >>> authorization_url = oauth.authorization_url(base_authorization_url)
74- >>> print 'Please go here and authorize,', authorization_url
75- >>> redirect_response = raw_input ('Paste the full redirect URL here: ')
74+ >>> print( 'Please go here and authorize,', authorization_url)
75+ >>> redirect_response = input ('Paste the full redirect URL here: ')
7676 >>> oauth_response = oauth.parse_authorization_response(redirect_response)
7777 {
7878 "oauth_token": "Z6eEdO8MOmk394WozF5oKyuAv855l4Mlqo7hhlSLik",
@@ -83,8 +83,8 @@ Workflow example showing use of both OAuth1 and OAuth1Session
8383 >>> # Using OAuth1 auth helper
8484 >>> authorize_url = base_authorization_url + '?oauth_token='
8585 >>> authorize_url = authorize_url + resource_owner_key
86- >>> print 'Please go here and authorize,', authorize_url
87- >>> verifier = raw_input ('Please input the verifier')
86+ >>> print( 'Please go here and authorize,', authorize_url)
87+ >>> verifier = input ('Please input the verifier')
8888
8989 3. Obtain an access token from the OAuth provider. Save this token as it can be
9090 re-used later. In this step we will re-use most of the credentials obtained
@@ -153,12 +153,12 @@ OAuth takes many forms, so let's take a look at a few different forms:
153153 import requests
154154 from requests_oauthlib import OAuth1
155155
156- url = u ' https://api.twitter.com/1/account/settings.json'
156+ url = ' https://api.twitter.com/1/account/settings.json'
157157
158- client_key = u ' ...'
159- client_secret = u ' ...'
160- resource_owner_key = u ' ...'
161- resource_owner_secret = u ' ...'
158+ client_key = ' ...'
159+ client_secret = ' ...'
160+ resource_owner_key = ' ...'
161+ resource_owner_secret = ' ...'
162162
163163
164164 Header signing (recommended):
0 commit comments