Groups
Groups
Sign in
Groups
Groups
OpenSocial Client Libraries
Conversations
About
Send feedback
Help
Running the samples with a different VIEWER_ID fails
0 views
Skip to first unread message
Pierre Henri Kuate
unread,
Feb 21, 2009, 5:37:37 PM
2/21/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to opensocial-client-libraries
Hi,
I am using a modified version of the OpenSocial Client Library to
access the REST/RPC API of Orkut.
The samples work perfectly with the provided details of the gadget
http://opensocial-resources.googlecode.com/svn/samples/rest_rpc/sample.xml
However, when I change the VIEWER_ID to mine (I have installed this
gadget in my sandbox account), it fails:
Request URL:
http://sandbox.orkut.com/social/rpc?xoauth_requestor_id=MY_VIEWER_ID&oauth_consumer_key=orkut.com%3A623061448914&oauth_nonce=ec5b663f-a069-4dad-ac5f-bef6a4a0124f&oauth_signature=LCZkL2cQm8zVmRELUsR5ugB06LY%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1235255208&oauth_version=1.0&%5B%7B%22id%22%3A%22people%22%2C%22method%22%3A%22people.get%22%2C%22params%22%3A%7B%22groupId%22%3A%22%40self%22%2C%22userId%22%3A%22%40me%22%7D%7D%5D=
Request body:
[{"id":"people","method":"people.get","params":
{"groupId":"@self","userId":"@me"}}]
Response:
{"message":"unauthorized: The request did not have a proper security
token nor oauth message and unauthenticated requests are not
allowed","code":401}
I have also tried using my own CONSUMER_KEY & SECRET, but it fails
with the same message.
Any tips on how I can solve this issue?
Pierre Henri Kuate
unread,
Feb 23, 2009, 10:38:32 AM
2/23/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to opensocial-client-libraries
I managed to solve the problem by comparing how my library works with
how the java one works.
My implementation of OpenSocialRequestSigner was faulty.
Reply all
Reply to author
Forward
0 new messages