opensocial.Activity

Method

opensocial.Activity.getId

Not supported.

opensocial.Activity.getField

Acquires data for the Activity linked to the specified key.

Parameter

Parameter

Type

Description

key

String

Key for acquiring data. Refer to the Field class for possible values.

opt_params

Map.<opensocial.DataRequest.DataRequestFields|Object>

Additional parameters passed on to requests

Return value

Type

Description

String

Data

Sample

opensocial.Activity.setField

Sets data in the Activity with the specified key.

Parameter

Name

Type

Description

key

String

The key to set in data

String

String

The data to set

Return value

None

Sample

opensocial.Activity.Field

opensocial.Activity.Field.TITLE_ID

Not supported.

opensocial.Activity.Field.TITLE

The title of the activity. Please use 42 single-byte characters or less (or 21 double-byte characters or less).

opensocial.Activity.Field.TEMPLATE_PARAMS

Not supported

opensocial.Activity.Field.URL

This is an activity reference URL for PC. When omitted, it is the URL for the home page of the application.

opensocial.Activity.Field.MEDIA_ITEMS

Image files on the activities. You can register up to three MediaItem. At this moment, it displayed at a size of 75×75 in the PC version and it will not displayed in the Mobile version.

opensocial.Activity.Field.BODY_ID

Not supported.

opensocial.Activity.Field.BODY

This is the main text of an activity. Please do not set the unrestricted text from a user. In addition, the body is not displayed on the mobile version at this point in time.

opensocial.Activity.Field.EXTERNAL_ID

Not supported.

opensocial.Activity.Field.STREAM_TITLE

Not supported.

opensocial.Activity.Field.STREAM_URL

Not supported.

opensocial.Activity.Field.STREAM_SOURCE_URL

Not supported.

opensocial.Activity.Field.STREAM_FAVICON_URL

Not supported.

opensocial.Activity.Field.PRIORITY

There are no discrepancies with the priority order at this moment.

opensocial.Activity.Field.ID

Not supported.

opensocial.Activity.Field.USER_ID

Not supported.

opensocial.Activity.Field.APP_ID

Not supported.

opensocial.Activity.Field.POSTED_TIME

Not supported.

mbga.Activity.Field

mbga.Activity.Field.MOBILE_URL

This is an activity reference URL for mobile devices. When omitted, it is the URL for the home page of the application. 

mbga.Activity.Field.TOUCH_URL

This is an activity reference URL for smartphone devices. When omitted, it is the URL for the home page of the application.

Revision History

  • 12/2010
    • Initial Release.

PREVIOUS

opensocial

NEXT

opensocial.Address