You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by "Chris.R.Park" <ba...@gmail.com> on 2008/08/29 00:07:14 UTC
method: people.get
Hi.
I have a question about shindig.
My shindig is up to date(Revision: 689930)
I have created my own PHP page.
xml page is included in that page. and it will go to shindig server
for getting data.
But In shindig server I can't get Post data.
1. POST
http://xxx.com/social/rpc?st=8000010303%3A8000010303%3A4395%3Ashindig%3Ahttp%253A%2F%2F192.168.10.116%2Fprofile%2Fopensocial%2Ffriends.xml%3A0
POST:
[
{
"method":"people.get",
"params": {
"userId":["@viewer"],
"groupId":"@self",
"fields":["id","name","thumbnailUrl"]
},
"id":"viewer"
},
{
"method":"people.get",
"params":{
"userId":["@viewer"],
"groupId":"@friends",
"fields":["id","name","thumbnailUrl"],
"count":100,
"sortBy":"topFriends",
"filterBy":"all"
},
"id":"viewerFriends"
}
]
2. RESPONSE
in php page in shindig server
echo "<pre>";
var_dump($_REQUEST);
echo "</pre>";
=>
<pre>array(15) {
["st"]=>
string(794) "8000010303:8000010303:4395:shindig:http%3A//
192.168.10.116/profile/opensocial/friends.xml:0"
}
</pre>
There is no information about "friend" and "viewerFriends"
If you have any information about above thing.
Please let me know.
Thanks
Re: method: people.get
Posted by "Chris.R.Park" <ba...@gmail.com>.
Thanks for reply
but I use java version.
actually I use Proxypass in apache conf.
so
>> http://xxx.com/social/rpc?st=8000010303%3A8000010303%3A4395%3Ashindig%3Ahttp%253A%2F%2F192.168.10.116%2Fprofile%2Fopensocial%2Ffriends.xml%3A0
=>(Proxypass)
>> http://xxx.com/phpapi/index.php?st=8000010303%3A8000010303%3A4395%3Ashindig%3Ahttp%253A%2F%2F192.168.10.116%2Fprofile%2Fopensocial%2Ffriends.xml%3A0
and then
In that page(index.php) I want to get some data from xml.
Is it impossible?
Thanks
On Aug 28, 2008, at 4:52 PM, Chris Chabot wrote:
> Hey Chris,
>
> Are you trying this on the PHP version of Shindig? Unfortunately we
> haven't completed the JSON-RPC there yet, I hope to have that done
> in a week or 2 at the most; The Java version does have a pretty
> complete version though, so if you need something to test/develop
> against in the meantime, you could consider using that.
>
> -- Chris
>
> On Aug 29, 2008, at 12:07 AM, Chris.R.Park wrote:
>
>> Hi.
>> I have a question about shindig.
>> My shindig is up to date(Revision: 689930)
>>
>> I have created my own PHP page.
>> xml page is included in that page. and it will go to shindig server
>> for getting data.
>>
>> But In shindig server I can't get Post data.
>>
>> 1. POST
>> http://xxx.com/social/rpc?st=8000010303%3A8000010303%3A4395%3Ashindig%3Ahttp%253A%2F%2F192.168.10.116%2Fprofile%2Fopensocial%2Ffriends.xml%3A0
>>
>> POST:
>> [
>> {
>> "method":"people.get",
>> "params": {
>> "userId":["@viewer"],
>> "groupId":"@self",
>> "fields":["id","name","thumbnailUrl"]
>> },
>> "id":"viewer"
>> },
>> {
>> "method":"people.get",
>> "params":{
>> "userId":["@viewer"],
>> "groupId":"@friends",
>> "fields":["id","name","thumbnailUrl"],
>> "count":100,
>> "sortBy":"topFriends",
>> "filterBy":"all"
>> },
>> "id":"viewerFriends"
>> }
>> ]
>>
>> 2. RESPONSE
>> in php page in shindig server
>>
>> echo "<pre>";
>> var_dump($_REQUEST);
>> echo "</pre>";
>>
>> =>
>>
>> <pre>array(15) {
>>
>> ["st"]=>
>>
>> string(794) "8000010303:8000010303:4395:shindig:http%3A//
>> 192.168.10.116/profile/opensocial/friends.xml:0"
>>
>>
>> }
>>
>> </pre>
>>
>> There is no information about "friend" and "viewerFriends"
>> If you have any information about above thing.
>> Please let me know.
>>
>> Thanks
>
Re: method: people.get
Posted by Chris Chabot <ch...@xs4all.nl>.
Hey Chris,
Are you trying this on the PHP version of Shindig? Unfortunately we
haven't completed the JSON-RPC there yet, I hope to have that done in
a week or 2 at the most; The Java version does have a pretty complete
version though, so if you need something to test/develop against in
the meantime, you could consider using that.
-- Chris
On Aug 29, 2008, at 12:07 AM, Chris.R.Park wrote:
> Hi.
> I have a question about shindig.
> My shindig is up to date(Revision: 689930)
>
> I have created my own PHP page.
> xml page is included in that page. and it will go to shindig server
> for getting data.
>
> But In shindig server I can't get Post data.
>
> 1. POST
> http://xxx.com/social/rpc?st=8000010303%3A8000010303%3A4395%3Ashindig%3Ahttp%253A%2F%2F192.168.10.116%2Fprofile%2Fopensocial%2Ffriends.xml%3A0
>
> POST:
> [
> {
> "method":"people.get",
> "params": {
> "userId":["@viewer"],
> "groupId":"@self",
> "fields":["id","name","thumbnailUrl"]
> },
> "id":"viewer"
> },
> {
> "method":"people.get",
> "params":{
> "userId":["@viewer"],
> "groupId":"@friends",
> "fields":["id","name","thumbnailUrl"],
> "count":100,
> "sortBy":"topFriends",
> "filterBy":"all"
> },
> "id":"viewerFriends"
> }
> ]
>
> 2. RESPONSE
> in php page in shindig server
>
> echo "<pre>";
> var_dump($_REQUEST);
> echo "</pre>";
>
> =>
>
> <pre>array(15) {
>
> ["st"]=>
>
> string(794) "8000010303:8000010303:4395:shindig:http%3A//
> 192.168.10.116/profile/opensocial/friends.xml:0"
>
>
> }
>
> </pre>
>
> There is no information about "friend" and "viewerFriends"
> If you have any information about above thing.
> Please let me know.
>
> Thanks