Opensocial.Url (v0.9)
From VZ Developer Wiki
This documentation is not completed yet and will be extended by more examples in future.
opensocial.Url
Base interface for all URL objects.
Methods
opensocial.Url.getField
String getField(key, opt_params)
- Parameters
- Returns
Type Description String The data
- Description
Gets data for this URL that is associated with the specified key.
opensocial.Url.Field
All of the fields that a URL has. These are the supported keys for the Url.getField() method.
opensocial.Url.Field.ADDRESS
- The address the URL points to, specified as a string. This field may be used interchangeably with the string 'address'.
opensocial.Url.Field.LINK_TEXT
- The text of the link, specified as a string. This field may be used interchangeably with the string 'linkText'.
opensocial.Url.Field.TYPE
- The URL number type or label, specified as a string. Examples: work, blog feed, website, etc. This field may be used interchangeably with the string 'type'.
OpenSocial (v0.9) | |||
opensocial.Url |