add information to a container

1 view
Skip to first unread message

Acerezo

unread,
Dec 9, 2009, 12:13:22 PM12/9/09
to opensocial-client-libraries
Does anyone knows if we can add fields to a container (myspace, orkut,
etc)? These fields need to store the user information calculated of
my application.

Thanks.

Jason (Google)

unread,
Dec 9, 2009, 1:48:32 PM12/9/09
to opensocial-cl...@googlegroups.com
orkut supports the OpenSocial persistent API which lets you set string values for arbitrary keys. This data is programatically accessible, but does not show up on user profiles. Also, I don't believe MySpace supports this part of the API.

- Jason


--

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



Andrés Cerezo

unread,
Dec 9, 2009, 1:56:59 PM12/9/09
to opensocial-cl...@googlegroups.com
oh thanks!!! Where can I find souce code with persistent API which lets you set string values for arbitrary keys? Do you remember the name of the api?
Thanks.

2009/12/9 Jason (Google) <apij...@google.com>

Jason (Google)

unread,
Dec 9, 2009, 2:14:31 PM12/9/09
to opensocial-cl...@googlegroups.com
Are you using a client library or the OpenSocial JavaScript API?

- Jason

2009/12/9 Andrés Cerezo <acerezo...@gmail.com>

Andrés Cerezo

unread,
Dec 9, 2009, 8:41:14 PM12/9/09
to opensocial-cl...@googlegroups.com
You're right I'm doing test with OpenSocialAppData in java, but I only can add the fields to my user, Do you knoww if I can add this field information to the  user of my fiends?


2009/12/9 Jason (Google) <apij...@google.com>

Jason (Google)

unread,
Dec 10, 2009, 1:38:49 PM12/10/09
to opensocial-cl...@googlegroups.com
You can only update app data for the current viewer (@viewer), not for specific user IDs. But if you're using two-legged OAuth, which you likely are if you're working with orkut, then you can set the VIEWER_ID property to any OpenSocial ID, which should allow you to set app data for the user with that ID. Note that the user will have to have the app installed on their profile or else you'll see a 401 response.

- Jason
Reply all
Reply to author
Forward
0 new messages