class UsersSessions extends Resource (View source)

The "sessions" collection of methods.

Typical usage is:

 $fitnessService = new Google\Service\Fitness(...);
 $sessions = $fitnessService->users_sessions;

Methods

delete(string $userId, string $sessionId, array $optParams = [])

Deletes a session specified by the given session ID. (sessions.delete)

listUsersSessions(string $userId, array $optParams = [])

Lists sessions previously created. (sessions.listUsersSessions)

update(string $userId, string $sessionId, Session $postBody, array $optParams = [])

Updates or insert a given session. (sessions.update)

Details

delete(string $userId, string $sessionId, array $optParams = [])

Deletes a session specified by the given session ID. (sessions.delete)

Parameters

string $userId

Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

string $sessionId

The ID of the session to be deleted.

array $optParams

Optional parameters.

Exceptions

Exception

ListSessionsResponse listUsersSessions(string $userId, array $optParams = [])

Lists sessions previously created. (sessions.listUsersSessions)

Parameters

string $userId

List sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

array $optParams

Optional parameters.

Return Value

ListSessionsResponse

Exceptions

Exception

Session update(string $userId, string $sessionId, Session $postBody, array $optParams = [])

Updates or insert a given session. (sessions.update)

Parameters

string $userId

Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

string $sessionId

The ID of the session to be created.

Session $postBody
array $optParams

Optional parameters.

Return Value

Session

Exceptions

Exception