Hello

I have a problem when requesting custom fields with the restful API
implemented in PHP.

(This API: http://code.google.com/p/opensocial-php-client/)

When I try to request information on myself, like this:

$result = $opensocial->fetchPerson('MY ID',
array('id','name','thumbnailUrl','STATUS'));

I only get the default set of fields, like this:

--
OpenSocialPerson Object
(
    [fields:private] => Array
        (
            [photos] => Array
                (
                    [0] => Array
                        (
                            [value] =>
http://img2.orkut.com/images/small/...
                            [type] => thumbnail
                        )

                )

            [id] => MY ID
            [isViewer] => 1
            [thumbnailUrl] => http://img2.orkut.com/images/small/...
            [name] => Array
                (
                    [familyName] => Lastname
                    [givenName] => Firstname
                )

            [isOwner] =>
        )

)
-- 

I have tried alternatives such as:
$result = $opensocial->fetchPerson('MY ID', array('STATUS'));
$result = $opensocial->fetchPerson('MY
ID',array('ABOUT_ME','ACTIVITIES','AGE','BOOKS','GENDER','HAS_APP','NAME
','STATUS','TAGS','URLS'));

But with the same problem. I only get the default information on the
user.

For reference. The Get URL is generated as:
http://sandbox.orkut.com/social/rest/people/MY
ID/@self?0=id&1=name&2=thumbnailUrl&3=STATUS

Which seems correct when I compare to the open social restful docs? This
*should* return information on the user including the latest Status
line, right?

Is it a problem with the PHP implementation of Open Social Restful API,
or is it a problem with Orkut? Perhaps orkut does not support requesting
custom fields like this?


Any help is greatly appreciated! Perhaps I have misunderstood something?

Best Regards,
Magnus Lundstedt


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to