Hi,
Here's a detailed breakdown of what we are trying to do: 1. Getting a request token on https://www.google.com/accounts/OAuthGetRequestToken with the parameter * scope=https://www.google.com/m8/feeds/+http://www.google.com/calendar/feeds/ * -- this is contacts and calendar. 2. Authorising the request token and getting the access token. This token is supposed to work for getting data for both Contacts and Calendar. 3. Next, we build the query according to Google's spec, and for Contacts we get: Open key: * GET&https%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds%2Fcontacts%2Fdefault%2Ffull&alt%3Djson%26max-results%3D250%26oauth_consumer_key%3Dapp01.d1.yamlabs.com%26oauth_nonce%3D4572616e48616d6d65724c61685486%26oauth_signature_method%3DRSA-SHA1%26oauth_timestamp%3D1303456746%26oauth_token%3D1%252FR2w8aun9Mf8yQtemt5XbZ1QwOtFEHmg0Ic4hPPl9A8Y%26oauth_version%3D1.0 * Signature for the open key + secret key (the certificate for which we have for our domain - *app01.d1.yamlabs.com*) (signature in base64 + URL normalization): * dsQZofKL12xwg7sPdcFjT4roIcT7bh%2FegL1Y%2BzKyymZrXmeKvkcN0Qt2zq4jl%2BHsh9e3vjCGMYym4z2i3S8C4ijx%2BbZ55zkevJxNSMhjmWL0Q3q6Ith1MGb8yMVrIqtCYhPDKgZ0EXE189KAqM3g074iR2fFqarS8PZZ6d6%2BwCc%3D *** And the link where we get the contacts: * https://www.google.com/m8/feeds/contacts/default/full?alt=json&max-results=250&oauth_consumer_key=app01.d1.yamlabs.com&oauth_token=1%2FR2w8aun9Mf8yQtemt5XbZ1QwOtFEHmg0Ic4hPPl9A8Y&oauth_signature_method=RSA-SHA1&oauth_signature=dsQZofKL12xwg7sPdcFjT4roIcT7bh%2FegL1Y%2BzKyymZrXmeKvkcN0Qt2zq4jl%2BHsh9e3vjCGMYym4z2i3S8C4ijx%2BbZ55zkevJxNSMhjmWL0Q3q6Ith1MGb8yMVrIqtCYhPDKgZ0EXE189KAqM3g074iR2fFqarS8PZZ6d6%2BwCc%3D&oauth_timestamp=1303456746&oauth_nonce=4572616e48616d6d65724c61685486&oauth_version=1.0 * * * We can actually feed this link to a browser and get the data. 4. Now, if we try the same thing for Calendar, we get: Open key: * GET&https%3a%2F%2Fwww.google.com%2Fcalendar%2Ffeeds%2Fdefault%2Fallcalendars%2Ffull&oauth_consumer_key%3Dapp01.d1.yamlabs.com%26oauth_nonce%3D4572616e48616d6d65724c61685486%26oauth_signature_method%3DRSA-SHA1%26oauth_timestamp%3D1303457082%26oauth_token%3D1%252FR2w8aun9Mf8yQtemt5XbZ1QwOtFEHmg0Ic4hPPl9A8Y%26oauth_version%3D1.0 * Signature: * aQqbku%2FjrDnlqcd1Gqs2CSnAWvg5OntS%2B%2FP9SO%2Fbz8YAdQFHGfDf5FqhlSMPpH5PjrThGWSdEzVVCtrCyvn2CABsQoXLsVtsSrRX0PX2%2F05g%2BLnzi3g%2FF5c075%2BLe%2BRV2P6pcwpCe1EF%2FQSoUjPgn7UTlvFbyDSR9NHmUiTrg%2Fw%3D *** The link: * https://www.google.com/calendar/feeds/default/allcalendars/full?oauth_consumer_key=app01.d1.yamlabs.com&oauth_nonce=4c94097174158582ae32cfd1005a53fc&oauth_signature=aQqbku%2FjrDnlqcd1Gqs2CSnAWvg5OntS%2B%2FP9SO%2Fbz8YAdQFHGfDf5FqhlSMPpH5PjrThGWSdEzVVCtrCyvn2CABsQoXLsVtsSrRX0PX2%2F05g%2BLnzi3g%2FF5c075%2BLe%2BRV2P6pcwpCe1EF%2FQSoUjPgn7UTlvFbyDSR9NHmUiTrg%2Fw%3D&oauth_signature_method=RSA-SHA1&oauth_timestamp=1303457082&oauth_token=1%2FR2w8aun9Mf8yQtemt5XbZ1QwOtFEHmg0Ic4hPPl9A8Y&oauth_version=1.0 * Which returns «Authorization required. Error 401». The algorithms for building the queries for Contacts and Calendars are identical. We get Contacts data but, for some reason, can't get the Calendar data. What are we doing wrong? -- You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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/calendar/community/forum.html
