Settings: get
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
需要授权
根据 ID 获取单个设置。
请求
HTTP 请求
GET https://www.googleapis.com/mirror/v1/settings/id
参数
参数名称 |
值 |
说明 |
路径参数 |
id |
string |
设置的 ID。有效的 ID 如下:locale - 用户语言/语言区域的键(BCP 47 标识符),Glassware 应使用该键呈现本地化内容。timezone - 用户当前时区区域的键(如 tz 数据库中所定义)。示例:America/Los_Angeles 。
|
授权
此请求需要获得下列范围的授权(详细了解身份验证和授权)。
范围 |
https://www.googleapis.com/auth/glass.timeline |
请求正文
使用此方法时请勿提供请求正文。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-10-15。
[null,null,["最后更新时间 (UTC):2024-10-15。"],[[["\u003cp\u003eRetrieves a specific user setting using its ID via a GET request.\u003c/p\u003e\n"],["\u003cp\u003eAccepts 'locale' or 'timezone' as valid setting IDs to retrieve user's language or time zone information respectively.\u003c/p\u003e\n"],["\u003cp\u003eRequires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/glass.timeline\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eReturns a \u003ccode\u003eSettings\u003c/code\u003e resource containing the requested setting's value upon successful execution.\u003c/p\u003e\n"]]],[],null,["# Settings: get\n\n**Requires [authorization](#auth)**\n\nGets a single setting by ID.\n\nRequest\n-------\n\n### HTTP request\n\n```\nGET https://www.googleapis.com/mirror/v1/settings/id\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Path parameters** |||\n| `id` | `string` | The ID of the setting. The following IDs are valid: - `locale` - The key to the user's language/locale ([BCP 47 identifier](http://tools.ietf.org/html/bcp47)) 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](http://www.twinsun.com/tz/tz-link.htm). Example: `America/Los_Angeles`. |\n\n### Authorization\n\nThis request requires authorization with the following scope ([read more about authentication and authorization](/glass/authorization)).\n\n| Scope |\n|--------------------------------------------------|\n| `https://www.googleapis.com/auth/glass.timeline` |\n\n### Request body\n\nDo not supply a request body with this method.\n\nResponse\n--------\n\nIf successful, this method returns a [Settings resource](/glass/v1/reference/settings#resource) in the response body."]]