If you request a refresh token, you'll only need to visit the website once. 
Going through this process will generate a token that can be used more or 
less indefinitely. 

On Wednesday, June 26, 2013 11:35:33 AM UTC-4, Log Reader wrote:
>
> Hello,
>
> This is my first time using the google api so forgive me if this is a dumb 
> question. I'm attempting to get an authentication code to access a user's 
> fusion table data. I am stuck at the very first stage though. I'm using the 
> python version of the OAuth process. Here is what I have so far:
>
>      flow = OAuth2WebServerFlow(client_id = ...,
>                                 client_secret=os.path.join(os.getcwd() + 
> "client_secrets.json"),
>                                scope="...",
>                                redirect_uri="urn:ietf:wg:oauth:2.0:oob")
>
>     auth_uri = flow.step1_get_authorize_url()
>
> following the tutorial here: 
> https://developers.google.com/api-client-library/python/guide/aaa_oauth the 
> next command is:
>
>     credentials = flow.step2_exchange(code)
>
> but where is the code!? I am running an installed app, so I cannot use a 
> redirect_uri to a website, and I haven't set up localhost to receive it 
> yet, as I am just starting. I am very confused, "urn:ietf:wg:oauth:2.0:oob" 
> is supposed to put the code into the address bar of a web browser correct? 
> But my app isn't in a web browser, its just a python script. Is one 
> supposed to pop up? Nothing does. And I've checked the address bars of all 
> of my open tabs in chrome and there's nothing there. Literally nothing 
> happens when I run the first two lines, and I can't execute the credentials 
> = ... line without having a code object. I've tried running it through 
> terminal and through IDLE and neither works. 
>
> I feel like I am missing something incredibly obvious here, but I can't 
> find any information about this. Has anyone run into this problem before?
> Thanks for your help
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to