Opensocial.Person (v0.9)
NeedsExamples
- 1 Methods
- 2 opensocial.Person.Field
- 2.1 opensocial.Person.Field.ABOUT_ME
- 2.2 opensocial.Person.Field.ACTIVITIES
- 2.3 opensocial.Person.Field.ADDRESSES
- 2.4 opensocial.Person.Field.AGE
- 2.5 opensocial.Person.Field.BODY_TYPE
- 2.6 opensocial.Person.Field.BOOKS
- 2.7 opensocial.Person.Field.CARS
- 2.8 opensocial.Person.Field.CHILDREN
- 2.9 opensocial.Person.Field.CURRENT_LOCATION
- 2.10 opensocial.Person.Field.DATE_OF_BIRTH
- 2.11 opensocial.Person.Field.DRINKER
- 2.12 opensocial.Person.Field.EMAILS
- 2.13 opensocial.Person.Field.ETHNICITY
- 2.14 opensocial.Person.Field.FASHION
- 2.15 opensocial.Person.Field.FOOD
- 2.16 opensocial.Person.Field.GENDER
- 2.17 opensocial.Person.Field.HAPPIEST_WHEN
- 2.18 opensocial.Person.Field.HAS_APP
- 2.19 opensocial.Person.Field.HEROES
- 2.20 opensocial.Person.Field.HUMOR
- 2.21 opensocial.Person.Field.ID
- 2.22 opensocial.Person.Field.INTERESTS
- 2.23 opensocial.Person.Field.JOB_INTERESTS
- 2.24 opensocial.Person.Field.JOBS
- 2.25 opensocial.Person.Field.LANGUAGES_SPOKEN
- 2.26 opensocial.Person.Field.LIVING_ARRANGEMENT
- 2.27 opensocial.Person.Field.LOOKING_FOR
- 2.28 opensocial.Person.Field.MOVIES
- 2.29 opensocial.Person.Field.MUSIC
- 2.30 opensocial.Person.Field.NAME
- 2.31 opensocial.Person.Field.NETWORK_PRESENCE
- 2.32 opensocial.Person.Field.NICKNAME
- 2.33 opensocial.Person.Field.PETS
- 2.34 opensocial.Person.Field.PHONE_NUMBERS
- 2.35 opensocial.Person.Field.POLITICAL_VIEWS
- 2.36 opensocial.Person.Field.PROFILE_SONG
- 2.37 opensocial.Person.Field.PROFILE_URL
- 2.38 opensocial.Person.Field.PROFILE_VIDEO
- 2.39 opensocial.Person.Field.QUOTES
- 2.40 opensocial.Person.Field.RELATIONSHIP_STATUS
- 2.41 opensocial.Person.Field.RELIGION
- 2.42 opensocial.Person.Field.ROMANCE
- 2.43 opensocial.Person.Field.SCARED_OF
- 2.44 opensocial.Person.Field.SCHOOLS
- 2.45 opensocial.Person.Field.SEXUAL_ORIENTATION
- 2.46 opensocial.Person.Field.SMOKER
- 2.47 opensocial.Person.Field.SPORTS
- 2.48 opensocial.Person.Field.STATUS
- 2.49 opensocial.Person.Field.TAGS
- 2.50 opensocial.Person.Field.THUMBNAIL_URL
- 2.51 opensocial.Person.Field.TIME_ZONE
- 2.52 opensocial.Person.Field.TURN_OFFS
- 2.53 opensocial.Person.Field.TURN_ONS
- 2.54 opensocial.Person.Field.TV_SHOWS
- 2.55 opensocial.Person.Field.URLS
opensocial.Person
Base interface for all person objects.
Methods
opensocial.Person.getAppData
;String getAppData(key)
Parameters
NameTypeDescription |
Returns
TypeDescription |
Description
Gets the app data for this person that is associated with the specified key.
opensocial.Person.getDisplayName
;String getDisplayName()
Returns
TypeDescription |
Description
Gets a text display name for this person; guaranteed to return a useful string.
opensocial.Person.getField
;String getField(key, opt_params)
Parameters
NameTypeDescription |
Returns
TypeDescription |
Description
Gets data for this person that is associated with the specified key.
opensocial.Person.getId
;String getId()
Returns
TypeDescription |
Description
Gets an ID that can be permanently associated with this person.
opensocial.Person.isOwner
;Boolean isOwner()
Returns
TypeDescription |
Description
Returns true if this person object represents the owner of the current page.
opensocial.Person.isViewer
;Boolean isViewer()
Returns
TypeDescription |
Description
Returns true if this person object represents the currently logged in user.
opensocial.Person.Field
All of the fields that a person has. These are the supported keys for the Person.getField() method.
opensocial.Person.Field.ABOUT_ME
A general statement about the person, specified as a string. Container support for this field is OPTIONAL. This field may be used interchangeably with the string 'aboutMe'.
opensocial.Person.Field.ACTIVITIES
Person's favorite activities, specified as an Array of strings. Container support for this field is OPTIONAL. This field may be used interchangeably with the string 'activities'.
opensocial.Person.Field.ADDRESSES
Addresses associated with the person, specified as an Array of Address es. Container support for this field is OPTIONAL. This field may be used interchangeably with the string 'addresses'.