Version 13 (modified by https://me.yahoo.com/a/bdfn2pk4t_gmnqhzz3qzimzijb8-#cf251, 2 years ago)

--

hi5 Javascript API


The Javascript API allows you to access the hi5 data via an OpenSocial Interface.

  1. hi5.Album
  2. hi5.Photo
  3. hi5.Presence
  4. online.hi5.Status

hi5.Album

Description

In hi5 all photos are contained in an album. This class allows you to get various properties of a user's photo album.

Methods

album.getCount() Returns the number of albums the user has.

album.getCover() Returns the album image for a particular album.

album.getField(''key'')

album.getId() Returns the internal Id for an album.

album.getName() Returns the name of the album.

album.getPhotos() Returns the list of photos that a user has in their album

hi5.Photo

Description

This class returns the details about a particular photo in a user's album.

Methods

photo.getDescription() Returns the description of the photo.

photo.getField(''key'')

photo.getUrl() Returns the URL for a given photo.

hi5.Presence

Description

This class returns information about a user who is currently on.

Methods

presence.getField(''key'')

presence.getUserId() Returns the Id of the user who is currently on.

online.hi5.Status

Description

This class returns a user's status information.

Methods

status.getField(''key'')

status.getText() Returns the text of a user's status update.

status.getTimeAdded() Returns the time that the user updated their status

status.getUserId() Returns the user Id of the person who updated their status
Close