Orkut Sand Box development issue.

21 views
Skip to first unread message

wipro.client

unread,
Jan 16, 2009, 8:30:22 AM1/16/09
to Orkut Developer Forum, manish....@wipro.com, arun...@wipro.com, parima...@wipro.com
Hi All,

Please help me to know the following:

1. What will be the "http get request format" for geting activities
from orkut user.

is it some thing like ::
http://sandbox.orkut.com/social/rpc?groupId=@selff&id=myself&method=activities.get&oauth_consumer_key=orkut.com%3A623061448914&oauth_nonce=<oauth_nonce>&oauth_signature_method=HMAC-SHA1&oauth_timestamp=<oauth_timestamp>&oauth_token=&oauth_version=1.0&userId=@me&xoauth_requestor_id=<xoauth_requestor_id>&oauth_signature=<oauth_signature>


2.How to get the consumer key and consumer secret for my orkut
application.

3. What is the way to get the Phone number of a orkut profile.

I have registered the below gadget
http://opensocial-resources.googlecode.com/svn/samples/rest_rpc/sample.xml

Still i am not able to get the Phone numner of own profile.

Request that I am giving through browser is :
http://sandbox.orkut.com/social/rpc?groupId=@selff&id=myself&method=people.get&oauth_consumer_key=orkut.com%3A623061448914&oauth_nonce=<oauth_nonce>&oauth_signature_method=HMAC-SHA1&oauth_timestamp=<oauth_timestamp>&oauth_token=&oauth_version=1.0&userId=@me&xoauth_requestor_id=<xoauth_requestor_id>&oauth_signature=<oauth_signature>

(generated Orth tocken by using the Java Orth Library and Open Social
Java Client Sample program Consumer Key and comsumer secret Id values
and Viewer Id as obtained from sample gadget)

The response that I got is as below

{"id":"myself","data":
{"photos":[{"value":"http://img1.orkut.com/images/small/
1231160278/265092910/ep.jpg","type":"thumbnail"}],
"id":"09663142977818440782","isViewer":true,
"thumbnailUrl":"http://img1.orkut.com/images/small/
1231160278/265092910/ep.jpg",
"name":{"familyName":"client","givenName":"wipro"},
"isOwner":false
}
}

Can you please help me to know why it is not providing the phone
number for the own profile and why isOwner" is comming as false.

Thanks in advance.

Regards,
Arun.

Vijaya

unread,
Jan 21, 2009, 6:36:43 AM1/21/09
to Orkut Developer Forum
Hi Arun,
orkut REST APIs do not support activities currently.
In order to get the consumer key and shared secret for your app,
please follow the instructions in the following section of the
"Developer's Guide: Server to Server Protocol:
(http://code.google.com/apis/orkut/docs/rest/
developers_guide_protocol.html#Authenticating)
Look under the sub-heading 'Acquiring a shared secret'.
Use the generated consumer key and shared secret in your REST
application to retrieve the data.

When you use the Person REST API, only the default fields (id,
firstname, thumnail url etc.) are returned to you. To retrieve more
data for the member(s), you need to use 'fields' query string
parameter in your REST calls, as shown in section "6.5 Standard Query
Parameters":
http://www.opensocial.org/Technical-Resources/opensocial-spec-v081/restful-protocol
Currently the client libraries do not have support for specifying the
fields, but you can directly use the REST endpoints and specify the
query string parameters in your application.

Pettersen

unread,
Jan 28, 2009, 1:11:03 PM1/28/09
to Orkut Developer Forum
Hi Vijaya,

About what you mentioned: "To retrieve more data for the member(s),
you need to use 'fields' query string parameter in your REST calls"

I'm trying to use a query string, like count=5, but I get an Error
401. Below, I'm posting the REST endpoint i'm using. If you have any
ideas on whats wrong, I'll be glad to hear.

http://sandbox.orkut.com/social/rest/people/08188257677088493439/@friends?count=5&oauth_signature=*************&oauth_consumer_key=orkut.com%3A744365788847&oauth_nonce=7768537923014727384&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1233161444&oauth_token=&oauth_version=1.0&xoauth_requestor_id=08188257677088493439

And just so you know, i do get a successful response when sending a
rest endpoint, with no standard query string parameter, like this:

http://sandbox.orkut.com/social/rest/people/08188257677088493439/@friends?oauth_signature=*************&oauth_consumer_key=orkut.com%3A744365788847&oauth_nonce=7768537923014727384&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1233161444&oauth_token=&oauth_version=1.0&xoauth_requestor_id=08188257677088493439

thanks,
pettersen

On Jan 21, 9:36 am, Vijaya <api.vij...@google.com> wrote:
> Hi Arun,
> orkut REST APIs do not support activities currently.
> In order to get the consumer key and shared secret for your app,
> please follow the instructions in the following section of the
> "Developer's Guide: Server to Server Protocol:
> (http://code.google.com/apis/orkut/docs/rest/
> developers_guide_protocol.html#Authenticating)
> Look under the sub-heading 'Acquiring a shared secret'.
> Use the generated consumer key and shared secret in your REST
> application to retrieve the data.
>
> When you use the Person REST API,  only the default fields (id,
> firstname, thumnail url etc.) are returned to you. To retrieve more
> data for the member(s), you need to use 'fields' query string
> parameter in your REST calls, as shown in section "6.5 Standard Query
> Parameters":http://www.opensocial.org/Technical-Resources/opensocial-spec-v081/re...

Pettersen

unread,
Jan 28, 2009, 1:11:03 PM1/28/09
to Orkut Developer Forum
Hi Vijaya,

About what you mentioned: "To retrieve more data for the member(s),
you need to use 'fields' query string parameter in your REST calls"

I'm trying to use a query string, like count=5, but I get an Error
401. Below, I'm posting the REST endpoint i'm using. If you have any
ideas on whats wrong, I'll be glad to hear.

http://sandbox.orkut.com/social/rest/people/08188257677088493439/@friends?count=5&oauth_signature=*************&oauth_consumer_key=orkut.com%3A744365788847&oauth_nonce=7768537923014727384&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1233161444&oauth_token=&oauth_version=1.0&xoauth_requestor_id=08188257677088493439

And just so you know, i do get a successful response when sending a
rest endpoint, with no standard query string parameter, like this:

http://sandbox.orkut.com/social/rest/people/08188257677088493439/@friends?oauth_signature=*************&oauth_consumer_key=orkut.com%3A744365788847&oauth_nonce=7768537923014727384&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1233161444&oauth_token=&oauth_version=1.0&xoauth_requestor_id=08188257677088493439

thanks,
pettersen

On Jan 21, 9:36 am, Vijaya <api.vij...@google.com> wrote:
> Hi Arun,
> orkut REST APIs do not support activities currently.
> In order to get the consumer key and shared secret for your app,
> please follow the instructions in the following section of the
> "Developer's Guide: Server to Server Protocol:
> (http://code.google.com/apis/orkut/docs/rest/
> developers_guide_protocol.html#Authenticating)
> Look under the sub-heading 'Acquiring a shared secret'.
> Use the generated consumer key and shared secret in your REST
> application to retrieve the data.
>
> When you use the Person REST API,  only the default fields (id,
> firstname, thumnail url etc.) are returned to you. To retrieve more
> data for the member(s), you need to use 'fields' query string
> parameter in your REST calls, as shown in section "6.5 Standard Query
> Parameters":http://www.opensocial.org/Technical-Resources/opensocial-spec-v081/re...

Felipe Albacete

unread,
Mar 24, 2009, 3:40:40 PM3/24/09
to Orkut Developer Forum
Hi Folks,

I'm having the same issue of Pettersen anyone knows what can I do to
solve it??

Thanks a lot

[]'s

Felipe Albacete

On Jan 28, 3:11 pm, Pettersen <Petter...@gmail.com> wrote:
> Hi Vijaya,
>
> About what you mentioned: "To retrieve more data for the member(s),
> you need to use 'fields' query string parameter in your REST calls"
>
> I'm trying to use a query string, likecount=5, but I get anError401. Below, I'm posting the REST endpoint i'm using. If you have any
> ideas on whats wrong, I'll be glad to hear.
>
> http://sandbox.orkut.com/social/rest/people/08188257677088493439/@fri...
>
> And just so you know, i do get a successful response when sending a
> rest endpoint, with no standard query string parameter, like this:
>
> http://sandbox.orkut.com/social/rest/people/08188257677088493439/@fri...
>
> thanks,
> pettersen
>
> On Jan 21, 9:36 am, Vijaya <api.vij...@google.com> wrote:
>
> > Hi Arun,
> >orkutREST APIs do not support activities currently.
> > In order to get the consumer key and shared secret for your app,
> > please follow the instructions in the following section of the
> > "Developer's Guide: Server to Server Protocol:
> > (http://code.google.com/apis/orkut/docs/rest/
> > developers_guide_protocol.html#Authenticating)
> > Look under the sub-heading 'Acquiring a shared secret'.
> > Use the generated consumer key and shared secret in your REST
> > application to retrieve the data.
>
> > When you use the Person RESTAPI,  only the default fields (id,

Vijaya

unread,
Mar 25, 2009, 4:50:03 AM3/25/09
to Orkut Developer Forum
I have just tried the following URL:
http://sandbox.orkut.com/social/rest/people/15233934858816701837/@friends?count=2&st=AFinprRpwT-ekSCz3-5rEfhbBdJM4rEbBocfRsLMAvMdMv24vraLXjqzMUBzWtTZhF8ZUedwvHmKDvp20PtMz7cH_JzmnJtcJ6qq7a8ACpUv6pZdvZ1kZZc#gadgetId=1076607180887

and was able to retrieve the correct data. Ofcourse, to try this out,
you'll have to grab a secret token (st) from your existing app in the
orkut session. In Firefox, you can get the secret token by right
clicking on your app in the canvas view and choosing 'This Frame ->
Open Frame in a New Tab' and in the new tab, getting the st=.... data
from the URL.

As for the 401 error you're seeing in your app, please make sure that
your oauth parameters are correct. Are you using a client library or
are you generating your own oauth parameters?
Reply all
Reply to author
Forward
0 new messages