States

A resource representing app state information.

For a list of methods for this resource, see the end of this page.

Resource representations

This is a JSON template for an app state resource.

{
  "kind": "appstate#getResponse",
  "stateKey": integer,
  "currentStateVersion": string,
  "data": string
}
Property name Value Description Notes
kind string Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.
stateKey integer The key for the data.
currentStateVersion string The current app state version.
data string The requested data.

Methods

clear
Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.
delete
Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.
get
Retrieves the data corresponding to the passed key. If the key does not exist on the server, an HTTP 404 will be returned.
list
Lists all the states keys, and optionally the state data.
update
Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.

Send feedback about...

Play Games Services for Web
Play Games Services for Web