Are you using the 2legged-api for PHP ? If so, there is a bug when getting
tokens with space on it, which results problems when authenticating.

BTW, why not using 3legged ?

Best

Robson Dantas
@robsondantas

On Wed, Mar 30, 2011 at 2:57 PM, Roberto Scattini
<[email protected]>wrote:

> hi all, i am triying to get my friends list with my app in orkut via REST,
> but osapi php client keeps giving errors like this:
>
> [INFO][Wed, 30 Mar 11 17:32:27 +0000] - HTTP Request [INFO][Wed, 30 Mar 11
> 17:32:27 +0000] -
>
> *array*
>   'url' => string 
> 'http://sandbox.orkut.com/social/rpc?oauth_nonce=39ce3d04ae774905ad54c7c8f549c02d&oauth_version=1.0&oauth_timestamp=1301506347&oauth_consumer_key=orkut.com%3A734068883966&xoauth_requestor_id=06064885595942683910&oauth_body_hash=1NQPhQlfp5V%2BwCs1nb01%2BWj5VA8%3D&oauth_signature_method=HMAC-SHA1&oauth_signature=wSsIj4aUpg6pVMcfdzIFl1fnJ%2BY%3D'
>  *(length=343)*
>   'method' => string 'POST' *(length=4)*
>   'body' => string 
> '[{"method":"people.get","params":{"userId":["06064885595942683910"],"groupId":"@self","fields":"id,name"},"id":"self"}]'
>  *(length=119)*
>   'headers' =>
>     *array*
>       0 => string 'Content-Type: application/json' *(length=30)*
>
> [INFO][Wed, 30 Mar 11 17:32:27 +0000] - HTTP Response [INFO][Wed, 30 Mar 11
> 17:32:27 +0000] -
>
> *array*
>   'http_code' => int 401
>   'data' => string '<HTML>
> <HEAD>
> <TITLE>OAuth Authentication FailureOAuth Authentication Failure</TITLE>
> </HEAD>
> <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
> <H1>OAuth Authentication FailureOAuth Authentication Failure</H1>
> <H2>Error 401</H2>
> </BODY>
> </HTML>
> ' *(length=235)*
>   'headers' =>
>     *array*
>       0 => string 'Content-Type: application/json' *(length=30)*
>
> *
> *
>
> *
> *
>
> which could be the problem? my app is a game running "inside" orkut, and it
> is verified but not in testing nor published.
> the most annoying thing is that the samples packed with
> opensocial-php-client are running perfectly fine, but my app dont... :'(
>
> thanks in advance!!!
>
>
> Roberto
>
> --
> 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.
>

-- 
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