File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ a callback URL then you can try out the command line interactive example below.
30
30
... # offline for refresh token
31
31
... # force to always make user click authorize
32
32
... access_type="offline", prompt="select_account")
33
- >>> print 'Please go here and authorize, ', authorization_url
33
+ >>> print( 'Please go here and authorize: ', authorization_url)
34
34
35
35
>>> # Get the authorization verifier code from the callback url
36
- >>> redirect_response = raw_input ('Paste the full redirect URL here:')
36
+ >>> redirect_response = input ('Paste the full redirect URL here: ')
37
37
38
38
>>> # Fetch the access token
39
39
>>> google.fetch_token(token_url, client_secret=client_secret,
40
40
... authorization_response=redirect_response)
41
41
42
42
>>> # Fetch a protected resource, i.e. user profile
43
43
>>> r = google.get('https://www.googleapis.com/oauth2/v1/userinfo')
44
- >>> print r.content
44
+ >>> print( r.content)
You can’t perform that action at this time.
0 commit comments