Anybody knows how can I do it?
On Nov 25, 11:12 am, Leonardo Rafael Morastoni <
leomo...@gmail.com>
wrote:
> Thanks for response Robson!
>
> I'm using 2Legged OAuth, it will work too?
>
> Could please help me in other question? I post it on Orku Developer Group
> but I get no response yet.
> How can I can send to opensocial id from viewer to my external java app?
> Today, I just can see my opensocial id, that I need to conect to opensocial.
>
> Thanks.
>
> 2010/11/25 Robson Dantas <
biu.dan...@gmail.com>
>
>
>
> > Hi Leonardo!
>
> > Dont know if you are using 2legged or 3legged OAuth. For 3legged, just add
> > a parameter called 'count' and then you are done.
>
> > Looking on wiki´s library example, to make a call you should do something
> > like:
>
> > // Request the viewer's friends
> > Request viewerFriends = PeopleService.getFriends();
>
> > getFriends method is described here:
> >
http://code.google.com/p/opensocial-java-client/source/browse/trunk/j...
>
> > It sets:
> > request.setModelClass(Person.class);
> > request.setSelector(selector);
> > request.setGuid(guid);
>
> > So technically it should work like this:
>
> > // Request the viewer's friends
> > Request viewerFriends = PeopleService.getFriends();
> > viewerFriends.addParameter('count',400); //400 friends
>
> > It is also documented on this method description, see:
>
> > /**
> > * Adds an extended request parameter, e.g. count or startIndex, to be
> > passed
> > * as query parameters in the URL if executed using REST or in the
> > request
> > * body if executed via a RPC.
> > *
> > * @param name name of the extended parameter to set
> > * @param value value of the specified extended parameter
> > */
> > public void addParameter(String name, String value) {
> > addRpcPayloadParameter(name, value);
> > addRestQueryStringParameter(name, value);
> > }
>
> > Let us know if it works.
>
> > -Robson Dantas
>
> > 2010/11/25 Leonardo Rafael Morastoni <
leomo...@gmail.com>
>
> > How can I fecth more friends than 20? I need to compare a opensocial
> >> id with all friends of the viewer.
> >> I'm using java client library and OAuth
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "OpenSocial Client Libraries" group.
> >> To post to this group, send email to
> >>
opensocial-cl...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >>
opensocial-client-l...@googlegroups.com<
opensocial-client-libraries%2Bunsu...@googlegroups.com>
> >> .
> >
opensocial-client-l...@googlegroups.com<
opensocial-client-libraries%2Bunsu...@googlegroups.com>
> > .