Opensocial.requestCreateActivity()

Opensocial.requestCreateActivity() Description: Makes a request to the container to create the activity. Parameters include activity (instance of opensocial.Activity), p (priority, specified by opensocial .CreateActivityPriority.HIGH or LOW), and opt_callback (optional callback function to be called when activity is created). Object: Opensocial
Continue reading…

Enjoyed this post? Share it!

 
 

Opensocial.newNavigationalParameters()

Opensocial.newNavigationalParameters() Description: Redirects the user. Parameters include p (parameter map keyed with opensocial.NavagationalParameters.Field.* values that specify where to navigate to and when). Returns: opensocial.NavagationalParameters Object: Opensocial
Continue reading…

Enjoyed this post? Share it!

 
 

Opensocial.newMediaItem()

Opensocial.newMediaItem() Description: Creates a media item. Parameters include mt (type of media, specified by opensocial.MediaItem.Field.*), url (location of media, a string), and opt_params (optional parameters specifying additional fields). Returns: opensocial.MediaItem Object: Opensocial Example: var myVideo = opensocial.newMediaItem(opensocial.MediaItem.Field.VIDEO,"http://w3mentor.com/Video.mpg")
Continue reading…

Enjoyed this post? Share it!