You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "VU, Thi Thu Thuy" <th...@sap.com> on 2010/04/28 11:26:27 UTC

How to make request to shindig

Hello,
I've learnt shindig for 2 months, but i don't understand much how I can make the request from my own site to shindig to get DB. I want to use Rest API
For example, on my own site, I want to retrieve my friend's application. So which steps I have to follow to get his app?

Could you please list here all detail steps for this request?
I really need your help, cause I don't know how to do it, I'm blocked for a long time :(
Thank you very much.

Re: How to make request to shindig

Posted by hoat le <ho...@gmail.com>.
And for easier development, it's better to use client libraries:
http://wiki.opensocial.org/index.php?title=Client_Libraries

On Thu, Apr 29, 2010 at 3:07 PM, Evgeny Bogdanov <ev...@epfl.ch>wrote:

>
>
> On 29.04.10 09:32, VU, Thi Thu Thuy wrote:
>
>> Thanks for your help.
>>
>> I click on this link and it made me download a file which contains
>> john.doe's profile.
>> How can I display this profile on my site with this link?
>>
>>
> This file is a JSON file. You have to parse this json object.
> From this file you get information that is interesting for you and you
> build the profile view based on parsed information.
> It is your responsibility to build the view. Shindig won't give you a
> ready-to-use view, only data.
>
>  Whenever I login or click on one person, this will give me a profile. So
>> how can I do WITH SHINDIG?
>> Can u give me a detail progress pls?
>> Thank you.
>>
>> -----Original Message-----
>> From: franck tankoua [mailto:ftankoua@gmail.com]
>> Sent: Mittwoch, 28. April 2010 14:32
>> To: dev@shindig.apache.org
>> Subject: Re: How to make request to shindig
>>
>> Hi Vu,
>>
>> Your shindig servlets are already setup to follow the opensocial rest url
>> pattern. The servlet handling those url is accessible at /social/rest/
>> you can tried to query this url from your browser to see what I am talking
>> about : http://localhost:8080/social/rest/people/john.doe<
>> http://localhost:8080/>(
>> supposing that you are on localhost and port 8080 )
>> The above url is giving info about the user john.doe please take a look at
>> :
>> http://shindig.apache.org/overview.html ( opensocial rest section )
>>
>> hope it helps
>>
>> On Wed, Apr 28, 2010 at 1:39 PM, VU, Thi Thu Thuy
>> <th...@sap.com>wrote:
>>
>>
>>
>>> Hi,
>>>
>>> This rest url is generated automatically by shindig? Is that right?
>>> So if it's right, which parameters I have to give shindig to generate it,
>>> and can I give them?
>>>
>>> Thanks a lot.
>>>
>>> -----Original Message-----
>>> From: franck tankoua [mailto:ftankoua@gmail.com]
>>> Sent: mercredi 28 avril 2010 13:19
>>> To: dev@shindig.apache.org
>>> Subject: Re: How to make request to shindig
>>>
>>> Hi,
>>> I believe you can directly include the features js files in your html
>>> pages
>>> and use them to make convenient call to your services. I have not tried
>>> that
>>> Yet but I will certainly work on something similar in a week or so.
>>>
>>> You can allways use Ajax call directly to call your rest url ( e.g with
>>> prototype you will do something like : new Ajax.Request("
>>> /social/rest/appdata/{guid}/@friends/{appid}" ,.....)
>>>
>>> It is unlikely that you need to use Ajaxcalls directly since we already
>>> have
>>> a nice osapi out there.
>>> Let me know if this helps.
>>>
>>>
>>> On Wed, Apr 28, 2010 at 11:26 AM, VU, Thi Thu Thuy
>>> <th...@sap.com>wrote:
>>>
>>>
>>>
>>>> Hello,
>>>> I've learnt shindig for 2 months, but i don't understand much how I can
>>>> make the request from my own site to shindig to get DB. I want to use
>>>>
>>>>
>>> Rest
>>>
>>>
>>>> API
>>>> For example, on my own site, I want to retrieve my friend's application.
>>>>
>>>>
>>> So
>>>
>>>
>>>> which steps I have to follow to get his app?
>>>>
>>>> Could you please list here all detail steps for this request?
>>>> I really need your help, cause I don't know how to do it, I'm blocked
>>>> for
>>>>
>>>>
>>> a
>>>
>>>
>>>> long time :(
>>>> Thank you very much.
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Franck
>>>
>>>
>>>
>>
>>
>>
>>
>


-- 
Hoat Le Van [hoatle.net]

Re: How to make request to shindig

Posted by Evgeny Bogdanov <ev...@epfl.ch>.

On 29.04.10 09:32, VU, Thi Thu Thuy wrote:
> Thanks for your help.
>
> I click on this link and it made me download a file which contains john.doe's profile.
> How can I display this profile on my site with this link?
>    
This file is a JSON file. You have to parse this json object.
 From this file you get information that is interesting for you and you 
build the profile view based on parsed information.
It is your responsibility to build the view. Shindig won't give you a 
ready-to-use view, only data.
> Whenever I login or click on one person, this will give me a profile. So how can I do WITH SHINDIG?
> Can u give me a detail progress pls?
> Thank you.
>
> -----Original Message-----
> From: franck tankoua [mailto:ftankoua@gmail.com]
> Sent: Mittwoch, 28. April 2010 14:32
> To: dev@shindig.apache.org
> Subject: Re: How to make request to shindig
>
> Hi Vu,
>
> Your shindig servlets are already setup to follow the opensocial rest url
> pattern. The servlet handling those url is accessible at /social/rest/
> you can tried to query this url from your browser to see what I am talking
> about : http://localhost:8080/social/rest/people/john.doe<http://localhost:8080/>(
> supposing that you are on localhost and port 8080 )
> The above url is giving info about the user john.doe please take a look at :
> http://shindig.apache.org/overview.html ( opensocial rest section )
>
> hope it helps
>
> On Wed, Apr 28, 2010 at 1:39 PM, VU, Thi Thu Thuy
> <th...@sap.com>wrote:
>
>    
>> Hi,
>>
>> This rest url is generated automatically by shindig? Is that right?
>> So if it's right, which parameters I have to give shindig to generate it,
>> and can I give them?
>>
>> Thanks a lot.
>>
>> -----Original Message-----
>> From: franck tankoua [mailto:ftankoua@gmail.com]
>> Sent: mercredi 28 avril 2010 13:19
>> To: dev@shindig.apache.org
>> Subject: Re: How to make request to shindig
>>
>> Hi,
>> I believe you can directly include the features js files in your html pages
>> and use them to make convenient call to your services. I have not tried
>> that
>> Yet but I will certainly work on something similar in a week or so.
>>
>> You can allways use Ajax call directly to call your rest url ( e.g with
>> prototype you will do something like : new Ajax.Request("
>> /social/rest/appdata/{guid}/@friends/{appid}" ,.....)
>>
>> It is unlikely that you need to use Ajaxcalls directly since we already
>> have
>> a nice osapi out there.
>> Let me know if this helps.
>>
>>
>> On Wed, Apr 28, 2010 at 11:26 AM, VU, Thi Thu Thuy
>> <th...@sap.com>wrote:
>>
>>      
>>> Hello,
>>> I've learnt shindig for 2 months, but i don't understand much how I can
>>> make the request from my own site to shindig to get DB. I want to use
>>>        
>> Rest
>>      
>>> API
>>> For example, on my own site, I want to retrieve my friend's application.
>>>        
>> So
>>      
>>> which steps I have to follow to get his app?
>>>
>>> Could you please list here all detail steps for this request?
>>> I really need your help, cause I don't know how to do it, I'm blocked for
>>>        
>> a
>>      
>>> long time :(
>>> Thank you very much.
>>>
>>>        
>>
>>
>> --
>> Franck
>>
>>      
>
>
>    

RE: How to make request to shindig

Posted by "VU, Thi Thu Thuy" <th...@sap.com>.
Thanks for your help.

I click on this link and it made me download a file which contains john.doe's profile.
How can I display this profile on my site with this link?

Whenever I login or click on one person, this will give me a profile. So how can I do WITH SHINDIG?
Can u give me a detail progress pls?
Thank you.

-----Original Message-----
From: franck tankoua [mailto:ftankoua@gmail.com] 
Sent: Mittwoch, 28. April 2010 14:32
To: dev@shindig.apache.org
Subject: Re: How to make request to shindig

Hi Vu,

Your shindig servlets are already setup to follow the opensocial rest url
pattern. The servlet handling those url is accessible at /social/rest/
you can tried to query this url from your browser to see what I am talking
about : http://localhost:8080/social/rest/people/john.doe<http://localhost:8080/>(
supposing that you are on localhost and port 8080 )
The above url is giving info about the user john.doe please take a look at :
http://shindig.apache.org/overview.html ( opensocial rest section )

hope it helps

On Wed, Apr 28, 2010 at 1:39 PM, VU, Thi Thu Thuy
<th...@sap.com>wrote:

> Hi,
>
> This rest url is generated automatically by shindig? Is that right?
> So if it's right, which parameters I have to give shindig to generate it,
> and can I give them?
>
> Thanks a lot.
>
> -----Original Message-----
> From: franck tankoua [mailto:ftankoua@gmail.com]
> Sent: mercredi 28 avril 2010 13:19
> To: dev@shindig.apache.org
> Subject: Re: How to make request to shindig
>
> Hi,
> I believe you can directly include the features js files in your html pages
> and use them to make convenient call to your services. I have not tried
> that
> Yet but I will certainly work on something similar in a week or so.
>
> You can allways use Ajax call directly to call your rest url ( e.g with
> prototype you will do something like : new Ajax.Request("
> /social/rest/appdata/{guid}/@friends/{appid}" ,.....)
>
> It is unlikely that you need to use Ajaxcalls directly since we already
> have
> a nice osapi out there.
> Let me know if this helps.
>
>
> On Wed, Apr 28, 2010 at 11:26 AM, VU, Thi Thu Thuy
> <th...@sap.com>wrote:
>
> > Hello,
> > I've learnt shindig for 2 months, but i don't understand much how I can
> > make the request from my own site to shindig to get DB. I want to use
> Rest
> > API
> > For example, on my own site, I want to retrieve my friend's application.
> So
> > which steps I have to follow to get his app?
> >
> > Could you please list here all detail steps for this request?
> > I really need your help, cause I don't know how to do it, I'm blocked for
> a
> > long time :(
> > Thank you very much.
> >
>
>
>
> --
> Franck
>



-- 
Franck

Re: How to make request to shindig

Posted by franck tankoua <ft...@gmail.com>.
Hi Vu,

Your shindig servlets are already setup to follow the opensocial rest url
pattern. The servlet handling those url is accessible at /social/rest/
you can tried to query this url from your browser to see what I am talking
about : http://localhost:8080/social/rest/people/john.doe<http://localhost:8080/>(
supposing that you are on localhost and port 8080 )
The above url is giving info about the user john.doe please take a look at :
http://shindig.apache.org/overview.html ( opensocial rest section )

hope it helps

On Wed, Apr 28, 2010 at 1:39 PM, VU, Thi Thu Thuy
<th...@sap.com>wrote:

> Hi,
>
> This rest url is generated automatically by shindig? Is that right?
> So if it's right, which parameters I have to give shindig to generate it,
> and can I give them?
>
> Thanks a lot.
>
> -----Original Message-----
> From: franck tankoua [mailto:ftankoua@gmail.com]
> Sent: mercredi 28 avril 2010 13:19
> To: dev@shindig.apache.org
> Subject: Re: How to make request to shindig
>
> Hi,
> I believe you can directly include the features js files in your html pages
> and use them to make convenient call to your services. I have not tried
> that
> Yet but I will certainly work on something similar in a week or so.
>
> You can allways use Ajax call directly to call your rest url ( e.g with
> prototype you will do something like : new Ajax.Request("
> /social/rest/appdata/{guid}/@friends/{appid}" ,.....)
>
> It is unlikely that you need to use Ajaxcalls directly since we already
> have
> a nice osapi out there.
> Let me know if this helps.
>
>
> On Wed, Apr 28, 2010 at 11:26 AM, VU, Thi Thu Thuy
> <th...@sap.com>wrote:
>
> > Hello,
> > I've learnt shindig for 2 months, but i don't understand much how I can
> > make the request from my own site to shindig to get DB. I want to use
> Rest
> > API
> > For example, on my own site, I want to retrieve my friend's application.
> So
> > which steps I have to follow to get his app?
> >
> > Could you please list here all detail steps for this request?
> > I really need your help, cause I don't know how to do it, I'm blocked for
> a
> > long time :(
> > Thank you very much.
> >
>
>
>
> --
> Franck
>



-- 
Franck

RE: How to make request to shindig

Posted by "VU, Thi Thu Thuy" <th...@sap.com>.
Hi,

This rest url is generated automatically by shindig? Is that right?
So if it's right, which parameters I have to give shindig to generate it, and can I give them?

Thanks a lot.

-----Original Message-----
From: franck tankoua [mailto:ftankoua@gmail.com] 
Sent: mercredi 28 avril 2010 13:19
To: dev@shindig.apache.org
Subject: Re: How to make request to shindig

Hi,
I believe you can directly include the features js files in your html pages
and use them to make convenient call to your services. I have not tried that
Yet but I will certainly work on something similar in a week or so.

You can allways use Ajax call directly to call your rest url ( e.g with
prototype you will do something like : new Ajax.Request("
/social/rest/appdata/{guid}/@friends/{appid}" ,.....)

It is unlikely that you need to use Ajaxcalls directly since we already have
a nice osapi out there.
Let me know if this helps.


On Wed, Apr 28, 2010 at 11:26 AM, VU, Thi Thu Thuy
<th...@sap.com>wrote:

> Hello,
> I've learnt shindig for 2 months, but i don't understand much how I can
> make the request from my own site to shindig to get DB. I want to use Rest
> API
> For example, on my own site, I want to retrieve my friend's application. So
> which steps I have to follow to get his app?
>
> Could you please list here all detail steps for this request?
> I really need your help, cause I don't know how to do it, I'm blocked for a
> long time :(
> Thank you very much.
>



-- 
Franck

Re: How to make request to shindig

Posted by franck tankoua <ft...@gmail.com>.
Hi,
I believe you can directly include the features js files in your html pages
and use them to make convenient call to your services. I have not tried that
Yet but I will certainly work on something similar in a week or so.

You can allways use Ajax call directly to call your rest url ( e.g with
prototype you will do something like : new Ajax.Request("
/social/rest/appdata/{guid}/@friends/{appid}" ,.....)

It is unlikely that you need to use Ajaxcalls directly since we already have
a nice osapi out there.
Let me know if this helps.


On Wed, Apr 28, 2010 at 11:26 AM, VU, Thi Thu Thuy
<th...@sap.com>wrote:

> Hello,
> I've learnt shindig for 2 months, but i don't understand much how I can
> make the request from my own site to shindig to get DB. I want to use Rest
> API
> For example, on my own site, I want to retrieve my friend's application. So
> which steps I have to follow to get his app?
>
> Could you please list here all detail steps for this request?
> I really need your help, cause I don't know how to do it, I'm blocked for a
> long time :(
> Thank you very much.
>



-- 
Franck