I found that the format of the issued_at timestamp on the token was
important. If it's in seconds since epoch, it's wrong. If it's in
-MM-DD hh:mm:ss.ll then it seems to work better and refresh itself
after an hour.
On Wednesday, April 24, 2013 9:23:46 AM UTC-4, Paul Matthews (AdWords
Hi Eduardo,
Another thing that probably wasn't clear from my last message. Can you just
check, that you're storing the accessToken and the requestToken on the
server. These should be passed back from the user login and consent
stephttps://developers.google.com/accounts/docs/OAuth2#login
.
Do you have oauth2_access_type set to 'offline'?
On Friday, April 19, 2013 9:25:25 AM UTC-4, Eduardo Hiroshi Campos Tamaki
wrote:
Hi,
I'm having some trouble with the ruby api and oauth2, on my local
computer, I can make requests with the token every time, but when I test on
my server
Yes, it is, on adwords_api.yml
:oauth2_access_type: offline
on my localhost the token lasts forever and on my servers just 1 hour,
same code, same timestamp.
:(
Em terça-feira, 23 de abril de 2013 11h24min48s UTC-3, Jeremy Aube escreveu:
Do you have oauth2_access_type set to 'offline'?
On
Hi Eduardo,
It is correct that the *accessToken lasts only 1 hour*. That is the default
accessToken lifespan for OAuth2. What should happen, is you need to refresh
the accessToken using the refreshToken. This will give you another hour to
make requests to the API.
Please see the OAuth2
Hi,
I'm having some trouble with the ruby api and oauth2, on my local computer,
I can make requests with the token every time, but when I test on my server
the token lasts just one hour. I have checked the Timestamps and it's the
same.
Someone knows what's going on?
Thanks!
--
--