Hi Sean. Please post future questions regarding the client libraries
to http://groups.google.com/group/opensocial-client-libraries.

To use the clients today, you need to borrow a security token from an
existing application. You can do this by loading the canvas view of
any app, bust it out of its IFrame by right-clicking in the frame and
choosing "This Frame -> Open Frame in New Tab", and copy the st query-
string parameter from the address bar in the newly opened tab. This is
obviously not ideal, especially since the token expires every 60
minutes.

Soon, you'll be able to register a secret with orkut that you will be
able to use to sign requests (using OAuth) to the container. I'll ping
this thread when this is available. In the meantime, you can continue
stealing the token in orkut or use hi5 which doesn't require
authentication.

- Jason

On Nov 17, 5:16 pm, "Sean Sullivan" <[EMAIL PROTECTED]> wrote:
> According to Google's OAuth documentation:
>
>  http://code.google.com/apis/accounts/docs/OAuth.html
>
> applications can obtain a Request Token by sending an HTTP request
> to:    https://www.google.com/accounts/OAuthGetRequestToken
>
> The HTTP request must include a parameter called "scope":
>
> {
>
> *(required) URL identifying the service(s) to be accessed. The resulting
> token enables access to the specified service(s) only. Scopes are defined by
> each Google service; see the service's documentation for the correct value.
> To specify more than one scope, list each one separated with a space. This
> parameter is not defined in the OAuth standards; it is a Google-specific
> parameter.
> *
>
> }
>
> I tried sending "scope=orkut" in my HTTP request:
>
> [DEBUG] headers - >> POST /accounts/OAuthGetRequestToken HTTP/1.1
> [DEBUG] headers - >> Content-Type: application/x-www-form-urlencoded
> [DEBUG] wire - >> "scope=orkut&oauth_consumer_key=www.foobar.com
> &oauth_signature_method=HMAC-SHA1&oauth_timestamp=1226969987&oauth_nonce=1226969987123776000&oauth_version=1.0&oauth_signature=Iy%2FaWJ6J06JsvvCZO6RNhG7sQ70%3D"
>
> The response from Google was:
>
> [DEBUG] wire - << "HTTP/1.1 400 Bad Request[EOL]"
> [DEBUG] wire - << "Invalid scope: orkut[\n]"
>
> OAuthGetRequestToken doesn't recognize scope=orkut
>
> Should I be using a different value?
>
> Sean
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer 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/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to