class Events extends Resource (View source)

The "events" collection of methods.

Typical usage is:

 $gamesService = new Google\Service\Games(...);
 $events = $gamesService->events;

Methods

listByPlayer(array $optParams = [])

Returns a list showing the current progress on events in this application for the currently authenticated user. (events.listByPlayer)

listDefinitions(array $optParams = [])

Returns a list of the event definitions in this application.

record(EventRecordRequest $postBody, array $optParams = [])

Records a batch of changes to the number of times events have occurred for the currently authenticated user of this application. (events.record)

Details

PlayerEventListResponse listByPlayer(array $optParams = [])

Returns a list showing the current progress on events in this application for the currently authenticated user. (events.listByPlayer)

Parameters

array $optParams

Optional parameters.

Return Value

PlayerEventListResponse

Exceptions

Exception

EventDefinitionListResponse listDefinitions(array $optParams = [])

Returns a list of the event definitions in this application.

(events.listDefinitions)

Parameters

array $optParams

Optional parameters.

Return Value

EventDefinitionListResponse

Exceptions

Exception

EventUpdateResponse record(EventRecordRequest $postBody, array $optParams = [])

Records a batch of changes to the number of times events have occurred for the currently authenticated user of this application. (events.record)

Parameters

EventRecordRequest $postBody
array $optParams

Optional parameters.

Return Value

EventUpdateResponse

Exceptions

Exception