[OpenSocial] Re: Opensocial-php-client-0.2

2009-01-28 Thread alvin123
Hey, I also want to know the same thing. I have downloaded open social php library. I have run the showperson.php example. But, I don't understand how to create $config = array( "oauth_consumer_key" => "orkut.com:623061448914", "oauth_consumer_secret" => "uynAeXiWTisflWX99KU1D2q5", "serve

[OpenSocial] Re: Opensocial-php-client-0.2

2009-01-28 Thread yoichiro
Hi Soumya, alvin123, You must get Consumer key and Consumer secret for accessing to Orkut with OAuth authorization. These values can be issued using the following site: https://www.google.com/gadgets/directory/verify For getting these values, you'll need to develop and register any gadget to or

[OpenSocial] Re: Opensocial-php-client-0.2

2009-01-28 Thread alvin123
Hi yoichiro, Soumya, Thanks for guiding me. I submit the url of my application but it gives following error. I have also copy and paste that token to my page and also upload it. But, it's unable to read. We were unable to verify that you are an owner of the gadget located at: http://www.shahpar

[OpenSocial] How to use thumbnail images instead of display names ??

2009-01-28 Thread rinku dongaria
Hello , In the code given below can you tell me what should i do to use display photos instead of display names ?? What should i write in place of the code mentioned below in "bold figures" to get display photos of friends. * **function* updateGiftList(viewer, data, friends) { *var* json = *null*;

[OpenSocial] Re: retrieve all friends

2009-01-28 Thread SocialMatrix
I am using PHP client library. How do I change this? or anyway to change this using REST API? Thank You On Jan 26, 1:43 am, Bert Van den Brande wrote: > You should indicate that you want ALL friends to be retrieved, default is 20. > > Seehttp://code.google.com/apis/opensocial/docs/0.8/referenc

[OpenSocial] Re: retrieve all friends

2009-01-28 Thread SocialMatrix
Hi All, I am trying to get list of all friends using PHP client library. How do I change the MAX value? Thank You, Atit On Jan 28, 3:09 am, SocialMatrix wrote: > I am using PHP client library. How do I change this? > > or anyway to change this using REST API? > > Thank You > > On Jan 26, 1:43 a

[OpenSocial] How I know my id in following PHP code?

2009-01-28 Thread Chintan
$config = array( "oauth_consumer_key" => "orkut.com:141580622999", "oauth_consumer_secret" => "GaDpEl/61fTHu3mMd4MIbIfu", "server_rest_base" => "http://sandbox.orkut.com/social/rest/"; ); $opensocial = new OpenSocial($config); $person = $opensocial->fetchPerson('03067092798963641994'); // t

[OpenSocial] Re: Opensocial-php-client-0.2

2009-01-28 Thread Chintan
Thanks, I have got oauth details with other appication. Warm Regards, On Wed, Jan 28, 2009 at 3:01 PM, alvin123 wrote: > > Hi yoichiro, Soumya, > > Thanks for guiding me. I submit the url of my application but it gives > following error. > > I have also copy and paste that token to my page and

[OpenSocial] Re: Opensocial-php-client-0.2

2009-01-28 Thread alvin123
$config = array( "oauth_consumer_key" => "orkut.com:141580622999", "oauth_consumer_secret" => "GaDpEl/61fTHu3mMd4MIbIfu", "server_rest_base" => "http://sandbox.orkut.com/social/rest/"; ); $opensocial = new OpenSocial($config); $person = $opensocial->fetchPerson('03067092798963641994'); //

[OpenSocial] Re: How I know my id in following PHP code?

2009-01-28 Thread yoichiro
Hi Chintan, You'll be able to retrieve your id easily using OpenSocial Dev App. http://osda.appspot.com/ OSDA has the function to display the profile which includes the id of viewer and owner. Please try it. :) Thanks, Yoichiro On Jan 28, 8:15 pm, Chintan wrote: > $config = array( >   "oaut

[OpenSocial] Re: Regarding opensocial

2009-01-28 Thread Chris Chabot
Hey Swamy, If you send a mail to the opensocial list instead of to me directly, you have a much higher chance of getting a meaningful answer. There is support for sending a message in the OpenSocial API: http://code.google.com/apis/opensocial/docs/0.8/reference/#opensocial.requestSendMessagealso

[OpenSocial] Re: How I know my id in following PHP code?

2009-01-28 Thread Chintan
Thanks yoichiro, This is really a great tool. It's very useful to create an application. I have following error, after add my id. Gives error no 401, Get Profile Permission denied. You can check that error using following url. http://shahpariwar.com/orkut/lib/opensocial/samples/showperson/showpe

[OpenSocial] Re: Opensocial-php-client-0.2

2009-01-28 Thread Arne Roomann-Kurrik
If you have any questions about the client libraries, please forward them to the OpenSocial client libraries discussion group, available here: http://groups.google.com/group/opensocial-client-libraries Thanks, ~Arne On Jan 28, 3:34 am, alvin123 wrote: > $config = array( >   "oauth_consumer_key

[OpenSocial] Re: How I know my id in following PHP code?

2009-01-28 Thread Arne Roomann-Kurrik
To fetch an ID number, the user you are fetching needs to have your app installed on orkut. If you are using the default sample oauth consumer key and secret, chances are that your user account doesn't have the sample application installed. To test out the client library, please register an open

[OpenSocial] Re: How to send invitation of an application to my friends using OPen Social API

2009-01-28 Thread Arne Roomann-Kurrik
You should use the requestShareApp call, which is designed to do this. I don't know which containers currently support this, though- you may have better luck using requestSendMessage and hardcoding a link to your app in the message body. ~Arne On Jan 27, 9:52 pm, Soumya wrote: > Hi All, > > P

[OpenSocial] Re: How to use thumbnail images instead of display names ??

2009-01-28 Thread Arne Roomann-Kurrik
According to http://wiki.opensocial.org/index.php?title=Opensocial.Person_(v0.8) you should use the getField() method instead of getDisplayName() to fetch other data. For example: friends.getById(i).getField(opensocial.Person.Field.THUMBNAIL_URL); Of course, you'll need to print out tags to dis

[OpenSocial] Re: retrieve all friends

2009-01-28 Thread Arne Roomann-Kurrik
Currently the PHP client library doesn't have extra parameter support (although it wouldn't be too hard to add!). We're working on an updated version that adds this and a bunch of other requested features, which should be out pretty soon, so you may just want to wait for that update to go out. I

[OpenSocial] Re: retrieve all friends

2009-01-28 Thread SocialMatrix
Thanks Arne, I'll make sure to post questions about the client libraries in the other group suggested. However, I am under a deadline and can't wait till that feature to come out. So I looked at the OpenSocial.php and modified following public function fetchFriends($guid, $fields = Array()) {

[OpenSocial] Re: How to use thumbnail images instead of display names ??

2009-01-28 Thread rinku dongaria
Hey Arne , Thank you so much .. On Wed, Jan 28, 2009 at 11:17 PM, Arne Roomann-Kurrik wrote: > > According to > http://wiki.opensocial.org/index.php?title=Opensocial.Person_(v0.8) > you should use the getField() method ins

[OpenSocial] Re: Get opensocial ID by email and pass

2009-01-28 Thread swamy
Hi Kocherga Daniel, I am also working on same technical requirement from past one month, please mail the code to the mailid swam...@gmail.com if u got the solution. Thank u in advance. --~--~-~--~~~---~--~~ You received this message becau