opensocial.IdSpec
Method
opensocial.IdSepc.getField
Acquires data for the IdSpec linked to the specified key.
Parameter
Name |
Type |
Description |
---|---|---|
key |
String |
Key for acquiring data. Refer to the Field class for possible values |
opt_params |
Map.<opensocial.DataRequest.DataRequestFields|Object> |
Additional parameters passed on to requests |
Return value
Type |
Description |
---|---|
String |
Data |
Sample
opensocial.IdSepc.setField
Sets data in the IdSpec with the specified key.
Parameter
Name |
Type |
Description |
---|---|---|
key |
String |
The key to set in data |
String |
String |
The data to set |
Return value
Name
Sample
opensocial.IdSpec.Field
opensocial.IdSpec.Field.GROUP_ID
opensocial.IdSpec.Field.NETWORK_DISTANCE
opensocial.IdSpec.Field.USER_ID
opensocial.IdSpec.PersonId
opensocial.IdSpec.PersonId.VIEWER
opensocial.IdSpec.PersonId.OWNER
opensocial.IdSpec.GroupId
opensocial.IdSpec.GroupId.ALL
opensocial.IdSpec.GroupId.FRIENDS
opensocial.IdSpec.GroupId.SELF
Revision History
- 12/2010
- Initial Release.