Opensocial.Phone (v0.9)

NeedsExamples

opensocial.Phone

Base interface for all phone objects.

Methods

opensocial.Phone.getField

;String getField(key, opt_params)

Parameters
NameTypeDescription |

key

String

The key to get data for; keys are defined in Phone.Field

opt_params

Map.<opensocial.DataRequest.DataRequestFields

Object>

Additional params to pass to the request.

Returns
TypeDescription |

String

The data

Description
Gets data for this phone that is associated with the specified key.

opensocial.Phone.Field

All of the fields that a phone has. These are the supported keys for the Phone.getField() method.

opensocial.Phone.Field.NUMBER

The phone number, specified as a string. This field may be used interchangeably with the string 'number'.

opensocial.Phone.Field.TYPE

The phone number type or label, specified as a string. Examples: work, my favorite store, my house, etc. This field may be used interchangeably with the string 'type'.

{{ JsApiAlphaList_(v0.9) }}