opensocial.Url
Method
opensocial.Url.getField
String getField(key, opt_params)
Acquires data for the Url 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 address = url.getField(opensocial.Url.Field.ADDRESS);
opensocial.Url.Field
opensocial.Url.Field.TYPE
opensocial.Url.Field.LINK_TEXT
opensocial.Url.Field.ADDRESS
Revision History
- 12/2010
- Initial Release.