Settings: get
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
נדרשת הרשאה
מקבלת הגדרה אחת לפי מזהה.
בקשה
בקשת HTTP
GET https://www.googleapis.com/mirror/v1/settings/id
פרמטרים
שם הפרמטר |
ערך |
תיאור |
פרמטרים של נתיב |
id |
string |
המזהה של ההגדרה. המזהים הבאים חוקיים: locale – המפתח לשפה או ללוקאל של המשתמש (מזהה BCP 47) ש-Glassware צריך להשתמש בו כדי להציג תוכן מותאם לשוק המקומי. timezone – המפתח לאזור הזמן הנוכחי של המשתמש, כפי שמוגדר במסד הנתונים tz . דוגמה: America/Los_Angeles .
|
אישור
הבקשה הזו דורשת הרשאה ברמת ההיקף הבאה (מידע נוסף על אימות והרשאה).
היקף |
https://www.googleapis.com/auth/glass.timeline |
גוף הבקשה
אל תספקו גוף בקשה בשיטה הזו.
תשובה
אם הפעולה בוצעה ללא שגיאות, ה-method מחזיר משאב הגדרות בגוף התגובה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-10-15 (שעון UTC).
[null,null,["עדכון אחרון: 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."]]