Hi all,
I want to know how to create the instance of IdSpec in v0.8. I think
as follows, which is correct as the specification?
(1) Create the instance directry with 'new'.
var params = {};
params[opensocial.IdSpec.Field.USER_ID] =
opensocial.IdSpec.PersonId.VIEWER;
var id = new opensocial.IdSpec(params);
(2) Create the instance with opensocial.newIdSpec() function. This
function is not written in API Reference of v0.8, But I found it in
opensocial.js.
var params = {};
params[opensocial.IdSpec.Field.USER_ID] =
opensocial.IdSpec.PersonId.VIEWER;
var id = opensocial.newIdSpec(params);
http://opensocial-resources.googlecode.com/svn/spec/0.8/opensocial/opensocial.js
Best regards,
Yoichiro
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---