Hello, Please use the client and data module as described in the Developer's Guide as the service module only supports older versions of the API: http://code.google.com/apis/contacts/docs/3.0/developers_guide.html
Also, have you taken a look at this documentation: http://code.google.com/apis/gdata/docs/auth/oauth.html#Examples It shows how to use OAuth 1.0 as the authorization mechanism with the Python client library (data/client modules only). Best, Alain On Wed, Jan 11, 2012 at 5:23 AM, Vadim Khohlov <[email protected]>wrote: > 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 > -- Alain Vongsouvanh | Developer Programs Engineer -- 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
