Osapi.activities (v0.9)

From VZ Developer Wiki
Jump to: navigation, search

This documentation is not completed yet and will be extended by more examples in future.

osapi.activities

Service object with functions that map to the [./RPC-Protocol.xml#Activities JSON-RPC activities endpoint].

Methods

osapi.activities.get

<static> osapi.Request osapi.activities.get(params)
Parameters
Name Type Description
params {
AuthToken auth = HttpRequest.Authorization,
String or Array.<String> userId = "@me",
String groupId = "@self",
String appId = auth.AppId,
Array.<String> activityIds = [],
Array.<String> fields,
int count,
int startIndex,
int startPage
}
An optional JSON object containing request parameters. See the get operation of the [./RPC-Protocol.xml#Activities JSON-RPC Activities service] for more details.
Returns
Type Description
osapi.Request A request to retrieve information from the [./RPC-Protocol.xml#Activities JSON-RPC Activities service].
Description
Builds a request to retrieve activities from the Activities JSON-RPC service.

osapi.activities.create

<static> osapi.Request osapi.activities.create(params)
Parameters
Name Type Description
params {
AuthToken auth = HttpRequest.Authorization,
String or Array.<String> userId = "@me",
String groupId = "@self",
String appId = auth.AppId,
opensocial.Activity activity,
}
An optional JSON object containing request parameters. See the create operation of the [./RPC-Protocol.xml#Activities JSON-RPC Activities service] for more details.
Returns
Type Description
osapi.Request A request to retrieve information from the [./RPC-Protocol.xml#Activities JSON-RPC Activities service].
Description
Builds a request to create an activity using the Activities JSON-RPC service.



OpenSocial (v0.9)

gadgets

gadgets.io

gadgets.json

gadgets.Prefs

gadgets.util

gadgets.views

gadgets.flash

gadgets.MiniMessage

gadgets.oauth.Popup

gadgets.rpc

gadgets.skins

gadgets.pubsub

gadgets.Tab

gadgets.TabSet

gadgets.window

gadgets.i18n

opensocial

opensocial.Activity

opensocial.Address

opensocial.Album

opensocial.BodyType

opensocial.Collection

opensocial.CreateActivityPriority

opensocial.DataRequest

opensocial.DataResponse

opensocial.Email

opensocial.Enum

opensocial.Environment

opensocial.EscapeType

opensocial.IdSpec

opensocial.MediaItem

opensocial.Message

opensocial.MessageCollection

opensocial.Name

opensocial.NavigationParameters

opensocial.Organization

opensocial.Permission

opensocial.Person

opensocial.Phone

opensocial.ResponseItem

opensocial.Url

osapi.Request

osapi.BatchRequest

osapi.people

osapi.activities

osapi.appdata

osapi.messages

osapi.http