Settings: get

  • The GET method is used to retrieve a single setting by its ID.

  • This method requires authorization using the https://www.googleapis.com/auth/glass.timeline scope.

  • Valid setting IDs are locale for the user's language/locale and timezone for the user's current time zone.

  • The response body will contain a Settings resource if the request is successful.

Requires authorization

Gets a single setting by ID.

Request

HTTP request

GET https://www.googleapis.com/mirror/v1/settings/id

Parameters

Parameter name Value Description
Path parameters
id string The ID of the setting. The following IDs are valid:
  • locale - The key to the user’s language/locale (BCP 47 identifier) that Glassware should use to render localized content.
  • timezone - The key to the user’s current time zone region as defined in the tz database. Example: America/Los_Angeles.

Authorization

This request requires authorization with the following scope (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/glass.timeline

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a Settings resource in the response body.