If you already got access token or refresh from omniauth, you need to
supply those tokens when instantiate API class e.g.
in my case:
AdwordsApi::Api.new({
:authentication => {
method: 'OAuth2',
oauth2_client_id: MYCLIENTID,
oauth2_client_secret: MYCLIENTSECRET,
developer_token: 'DEVELOPER_TOKEN',
client_customer_id: 'xxx-xxx-xxxx',
oauth2_token: {
access_token: your_model.access_token,
refresh_token: your_model.refresh_token,
expires_in: 0,
issued_at: self.expires_at
},
user_agent: 'apitest'
},
:service => {
:environment => 'PRODUCTION'
}
})
sadly neither the documentation or example in the Gem talks about how to
use an existing access/refresh token
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.