Open social

0 views
Skip to first unread message

neo

unread,
Dec 1, 2009, 1:38:53 AM12/1/09
to OpenSocial - OpenSocial Application Development
i was executing this demo :
http://code.google.com/p/opensocial-java-client/

i am able to get my friends list and my profile info.

i m struggling in these things:

1> if i want to know about the list of friends who are currently login
what i have to do?

2>and also i have to know about list of friends of my friends ...i m
passing id of friend but it is not retrieving my friend's friend list
3> i want to send multiple batch request ? unable to do that
4>Q: whats the importance of oauth signature?



Robson Dantas

unread,
Dec 1, 2009, 7:55:17 AM12/1/09
to opensoc...@googlegroups.com
Hi,

1> No way to do it using opensocial;

2> You can use NETWORK_DISTANCE to reach your friends->friends: See an example: http://markmail.org/message/yoj77kt772zvd4nd


If you want to download all resources, just checkout the module on googlecode: http://code.google.com/p/opensocial-resources/source/checkout

4> Oauth signature is used to secure your application. If you want just to allow the container to send you data ( a form, for example), that´s the way to do it.


Let me know if you have any doubt.

Regards,

Robson Dantas

2009/12/1 neo <vivek1234...@yahoo.co.in>



--

You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group.
To post to this group, send email to opensoc...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-ap...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en.



neo

unread,
Dec 1, 2009, 7:55:35 AM12/1/09
to OpenSocial - OpenSocial Application Development
hello,

i was adding query parameter in RESTful api for geting list in
asending order ..it is not woeking?
Am i doing something wrong?

batch.addRequest(new OpenSocialRequest("@me/
@all&filterBy=&filterOp=contains&filterValue=&updatedSince=&fields=&sortBy=displayName&sortOrder=ascending",
""), "friends");

neo

unread,
Dec 1, 2009, 8:17:19 AM12/1/09
to OpenSocial - OpenSocial Application Development
Is the demo(link in the first mail)is based on outdated Restful api?
because whatever link u have provided ..in that whatever apis they are
using doesnt syncronized with what i have understood in this demo?


On Dec 1, 5:55 pm, neo <vivek123456789ku...@yahoo.co.in> wrote:
> hello,
>
> i was adding query parameter in RESTful api for geting list in
> asending order ..it is not woeking?
> Am i doing something wrong?
>
> batch.addRequest(new OpenSocialRequest("@me/
> @all&filterBy=&filterOp=contains&filterValue=&updatedSince=&fields=&sortBy=­displayName&sortOrder=ascending",
> ""), "friends");
>
> On Dec 1, 11:38 am, neo <vivek123456789ku...@yahoo.co.in> wrote:
>
>
>
> > i was executing this demo :http://code.google.com/p/opensocial-java-client/
>
> > i am able to get my friends list and my profile info.
>
> > i m struggling in these things:
>
> > 1> if i want to know about the list of friends who are currently login
> > what i have to do?
>
> > 2>and also i have to know about list of friends of my friends ...i m
> > passing id of friend but it is not retrieving my friend's friend list
> > 3> i want to send multiple batch request ? unable to do that
> > 4>Q: whats the importance of oauth signature?- Hide quoted text -
>
> - Show quoted text -

Vinod Shetye

unread,
Dec 1, 2009, 9:54:11 AM12/1/09
to opensoc...@googlegroups.com
Check out the OpenSocial Javascript API's working code from http://www.easycodingclub.com/ below site URL. Given URL will solve your problem for sending activity feeds, making request to server, sending user information to the server, reading data from XML file, profile view with the help of OS Template, etc.
http://www.easycodingclub.com/opensocial-tutorials/opensocial-application-code




Chris Chabot

unread,
Dec 1, 2009, 9:55:57 AM12/1/09
to opensoc...@googlegroups.com
Heh Vinod,

Are you going to post that advertising of easycodingclub to every mail thread, no matter what the question is? :)

Vinod Shetye

unread,
Dec 1, 2009, 10:04:05 AM12/1/09
to opensoc...@googlegroups.com
no, it's just for your reference. because i have you that and it's working that's the reason i have posted this :-)

neo

unread,
Dec 1, 2009, 11:12:14 PM12/1/09
to OpenSocial - OpenSocial Application Development
link doesnt work :-(

error:
The following error was encountered:

Unable to determine IP address from host name for www.easycodingclub.com
The dnsserver returned:

Name Error: The domain name does not exist.

On Dec 1, 8:04 pm, Vinod Shetye <vinod.she...@gmail.com> wrote:
> no, it's just for your reference. because i have you that and it's working
> that's the reason i have posted this :-)
>
>
>
> On Tue, Dec 1, 2009 at 8:25 PM, Chris Chabot <chab...@google.com> wrote:
> > Heh Vinod,
>
> > Are you going to post that advertising of easycodingclub to every mail
> > thread, no matter what the question is? :)
>
> > On Tue, Dec 1, 2009 at 3:54 PM, Vinod Shetye <vinod.she...@gmail.com>wrote:
>
> >> Check out the OpenSocial Javascript API's working code from
> >>http://www.easycodingclub.com/<http://www.easycodingclub.com/opensocial-tutorials/opensocial-applica...>below site URL. Given URL will solve your problem for sending activity
> >> feeds, making request to server, sending user information to the server,
> >> reading data from XML file, profile view with the help of OS Template, etc.
>
> >>http://www.easycodingclub.com/opensocial-tutorials/opensocial-applica...
>
> >> On Tue, Dec 1, 2009 at 12:08 PM, neo <vivek123456789ku...@yahoo.co.in>wrote:
>
> >>> i was executing this demo :
> >>>http://code.google.com/p/opensocial-java-client/
>
> >>> i am able to get my friends list and my profile info.
>
> >>> i m struggling in these things:
>
> >>> 1> if i want to know about the list of friends who are currently login
> >>> what i have to do?
>
> >>> 2>and also i have to know about list of friends of my friends ...i m
> >>> passing id of friend but it is not retrieving my friend's friend list
> >>> 3> i want to send multiple batch request ? unable to do that
> >>> 4>Q: whats the importance of oauth signature?
>
> >>> --
>
> >>> You received this message because you are subscribed to the Google Groups
> >>> "OpenSocial Application Development" group.
> >>> To post to this group, send email to opensoc...@googlegroups.com.
> >>> To unsubscribe from this group, send email to
> >>> opensocial-ap...@googlegroups.com<opensocial-api%2Bunsubscribe@go­oglegroups.com>
> >>> .
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/opensocial-api?hl=en.
>
> >>  --
> >> You received this message because you are subscribed to the Google Groups
> >> "OpenSocial Application Development" group.
> >> To post to this group, send email to opensoc...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> opensocial-ap...@googlegroups.com<opensocial-api%2Bunsubscribe@go­oglegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/opensocial-api?hl=en.
>
> >  --
> > You received this message because you are subscribed to the Google Groups
> > "OpenSocial Application Development" group.
> > To post to this group, send email to opensoc...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > opensocial-ap...@googlegroups.com<opensocial-api%2Bunsubscribe@go­oglegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/opensocial-api?hl=en.- Hide quoted text -
Message has been deleted

Chris Chabot

unread,
Dec 2, 2009, 6:08:53 AM12/2/09
to opensoc...@googlegroups.com, apij...@google.com
Hey AS,

I think you'll have more success in getting a response on opensocial-client-libraries questions on the group dedicated to that topic (see http://groups.google.com/group/opensocial-client-libraries for details).

I've CC'd Jason who can perhaps answer the question about how to add params in the java client library (but surely there's example code included that would show you how too?)

In regards to the question about "how to fetch friends in ascending order", the filter options (which includes sorting) is unfortunately an optional part of the spec that not every social site has implemented, so there's no guarantee it will always work.

You could of course if it's really vital functionality just fetch all friends and sort the list client side?

   -- Chris

On Wed, Dec 2, 2009 at 6:55 AM, as <sr.an...@gmail.com> wrote:
hello, can any body tell me

how to get list of friend in ascending order?
how to add query parameter in this api:
batch.addRequest(new OpenSocialRequest("@me/@all", ""), "friends");
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups "OpenSocial Application Development" group.
To post to this group, send email to opensoc...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-ap...@googlegroups.com.

RAJA SEKHAR

unread,
Dec 2, 2009, 6:12:07 AM12/2/09
to opensoc...@googlegroups.com, apij...@google.com
Hi Chris ,

Is there any PHP library for that ?if yes can you please provide that link.

thanks
Raju.
--
Sekhar

Chris Chabot

unread,
Dec 2, 2009, 6:15:09 AM12/2/09
to opensoc...@googlegroups.com

RAJA SEKHAR

unread,
Dec 2, 2009, 6:16:53 AM12/2/09
to opensoc...@googlegroups.com
Thank you very much Chris
Sent from Hyderabad, Andhra Pradesh, India

Jason (Google)

unread,
Dec 2, 2009, 2:52:09 PM12/2/09
to Chris Chabot, opensoc...@googlegroups.com
I assume you're using the pre-built library from April as opposed to the contents of trunk. If so, you should be able to use something like:

Map<String, OpenSocialRequestParameter> parameters = new HashMap<String, OpenSocialRequestParameter>();
// ...

Request r = new OpenSocialRequest("@me/@all", "");
r.setParameters(parameters);
batch.addRequest(r, "friends");

You can also pass the list into the fetchFriends method directly:

List<OpenSocialPerson> friends = client.fetchFriends("@me", parameters);

- Jason
Reply all
Reply to author
Forward
0 new messages