Settings: get
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Yetkilendirme gerektirir
Kimliğe göre tek bir ayar alır.
İstek
HTTP isteği
GET https://www.googleapis.com/mirror/v1/settings/id
Parametreler
Parametre adı |
Değer |
Açıklama |
Yol parametreleri |
id |
string |
Ayarın kimliği. Şu kimlikler geçerlidir: locale : Glassware'ın yerelleştirilmiş içeriği oluşturmak için kullanması gereken kullanıcı dilinin/yerel ayarın anahtarı (BCP 47 tanımlayıcısı). timezone : tz veritabanında tanımlandığı şekilde kullanıcının mevcut saat dilimi bölgesinin anahtarı. Örnek: America/Los_Angeles .
|
Yetkilendirme
Bu istek için aşağıdaki kapsamda yetkilendirme gerekir (kimlik doğrulama ve yetkilendirme hakkında daha fazla bilgi edinin).
Kapsam |
https://www.googleapis.com/auth/glass.timeline |
İstek içeriği
Bu yöntemle istek gövdesi göndermeyin.
Yanıt
Başarılı olursa bu yöntem yanıt gövdesinde bir Ayarlar kaynağı döndürür.
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-10-15 UTC.
[null,null,["Son güncelleme tarihi: 2024-10-15 UTC."],[[["\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."]]