I am trying to authorize my application to work with contacts and mail
via Oauth 1.0. Here is a fragment of python-code:
gd_client = gdata.service.GDataService()
gd_client.SetOAuthInputParameters(
gdata.auth.OAuthSignatureMethod.HMAC_SHA1,
settings.GOOGLE_CONSUMER_KEY,
consumer_secret = settings.GOOGLE_CONSUMER_SECRET
)
request_token =
gd_client.FetchOAuthRequestToken(scopes=['https://www.google.com/m8/
feeds/', 'https://mail.google.com/]) #scope for messages and contacts
I have two pairs of consumer key/secret. One for testing locally,
another for use on production. At production
request_token = gd_client.FetchOAuthRequestToken (scopes = ['https://
www.google.com/m8/feeds/', 'https://mail.google.com/])
returns a token that has a value None for secret for any pair of
consumer Key/secret.
Locally this code works correctly with consumer key/secret for local
testing and with consumer key/secret for production.
In what may be the problem? Maybe I should show more information?
--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html