Osapi.appdata (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.appdata

Service object with functions that map to the [./RPC-Protocol.xml#AppData JSON-RPC app data endpoint].

Methods

osapi.appdata.get

<static> osapi.Request osapi.appdata.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> keys,
}
An optional JSON object containing request parameters. See the get operation of the [./RPC-Protocol.xml#AppData JSON-RPC AppData service] for more details.
Returns
Type Description
osapi.Request A request to retrieve information from the [./RPC-Protocol.xml#AppData JSON-RPC AppData service].
Description
Builds a request to retrieve data from the AppData JSON-RPC service.

osapi.appdata.update

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

osapi.appdata.delete

<static> osapi.Request osapi.appdata.delete(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> keys,
}
An optional JSON object containing request parameters. See the delete operation of the [./RPC-Protocol.xml#AppData JSON-RPC AppData service] for more details.
Returns
Type Description
osapi.Request A request to retrieve information from the [./RPC-Protocol.xml#AppData JSON-RPC AppData service].
Description
Builds a request to delete data from the AppData 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