opensocial.Name
Method
opensocial.Name.getField
String getField(key, opt_params)
Acquires data for the Name 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> |
Return value
| Type | Description |
|---|---|
| String | Data |
Sample
var familyName = name.getField(opensocial.Name.Field.FAMILY_NAME);
opensocial.Name.Field
opensocial.Name.Field.FAMILY_NAME
opensocial.Name.Field.GIVEN_NAME
opensocial.Name.Field.ADDITIONAL_NAME
opensocial.Name.Field.HONORIFIC_PREFIX
opensocial.Name.Field.HONORIFIC_SUFFIX
opensocial.Name.Field.UNSTRUCTURED
Revision History
- 12/2010
- Initial Release.