Settings: watch
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Ayarlar kaynaklarında yapılan değişiklikleri takip edin.
İstek
HTTP isteği
POST https://www.googleapis.com/calendar/v3/users/me/settings/watch
Parametreler
Parametre adı |
Değer |
Açıklama |
Yetkilendirme
Bu istek, aşağıdaki kapsamların en az biriyle yetkilendirme gerektiriyor:
Kapsam |
https://www.googleapis.com/auth/calendar.readonly |
https://www.googleapis.com/auth/calendar |
https://www.googleapis.com/auth/calendar.settings.readonly |
Daha fazla bilgi edinmek için kimlik doğrulama ve yetkilendirme sayfasına göz atın.
İstek içeriği
İstek gövdesinde, verileri aşağıdaki yapıyla sağlayın:
{
"id": string,
"token": string,
"type": string,
"address": string,
"params": {
"ttl": string
}
}
Mülk adı |
Değer |
Açıklama |
Notlar |
id |
string |
Bu kanalı tanımlayan UUID veya benzeri bir benzersiz dize. |
|
token |
string |
Bu kanal üzerinden her bildirimle birlikte hedef adrese teslim edilen rastgele bir dize. İsteğe bağlı. |
|
type |
string |
Bu kanal için kullanılan yayınlama mekanizmasının türü. Geçerli değerler: "web_hook " (veya "webhook "). Her iki değer de Http isteklerinin mesaj iletmek için kullanıldığı bir kanalı ifade eder. |
|
address |
string |
Bu kanal için bildirimlerin iletildiği adres. |
|
params |
object |
Yayın kanalı davranışını kontrol eden ek parametreler. İsteğe bağlı. |
|
params.ttl |
string |
Bildirim kanalının saniye cinsinden geçerlilik süresi. Varsayılan değer 604800 saniyedir. |
|
Yanıt
Başarılı olursa bu yöntem, aşağıdaki yapıya sahip bir yanıt gövdesi döndürür:
{
"kind": "api#channel",
"id": string,
"resourceId": string,
"resourceUri": string,
"token": string,
"expiration": long
}
Mülk adı |
Değer |
Açıklama |
Notlar |
kind |
string |
Bu kanalı, "api#channel " adlı kaynaktaki değişiklikleri izlemek için kullanılan bildirim kanalı olarak tanımlar. |
|
id |
string |
Bu kanalı tanımlayan UUID veya benzeri bir benzersiz dize. |
|
resourceId |
string |
Bu kanalda izlenen kaynağı tanımlayan opak bir kimlik. Farklı API sürümlerinde kararlı. |
|
resourceUri |
string |
İzlenen kaynak için sürüme özgü bir tanımlayıcı. |
|
token |
string |
Bu kanal üzerinden her bildirimle birlikte hedef adrese teslim edilen rastgele bir dize. İsteğe bağlı. |
|
expiration |
long |
Bildirim kanalı süre sonunun tarihi ve saati (milisaniye cinsinden Unix zaman damgası olarak belirtilir). İsteğe bağlı. |
|
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: 2025-07-25 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-25 UTC."],[],[],null,["# Settings: watch\n\n| **Note:** Requires [authorization](#auth).\n\nWatch for changes to Settings resources.\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/calendar/v3/users/me/settings/watch\n```\n\n### Parameters\n\n| Parameter name | Value | Description |\n|----------------|-------|-------------|\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes:\n\n| Scope |\n|--------------------------------------------------------------|\n| `https://www.googleapis.com/auth/calendar.readonly` |\n| `https://www.googleapis.com/auth/calendar` |\n| `https://www.googleapis.com/auth/calendar.settings.readonly` |\n\nFor more information, see the [authentication and authorization](/workspace/guides/configure-oauth-consent) page.\n\n### Request body\n\nIn the request body, supply data with the following structure:\n\n```carbon\n{\n \"id\": string,\n \"token\": string,\n \"type\": string,\n \"address\": string,\n \"params\": {\n \"ttl\": string\n }\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------|\n| `id` | `string` | A UUID or similar unique string that identifies this channel. | |\n| `token` | `string` | An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. | |\n| `type` | `string` | The type of delivery mechanism used for this channel. Valid values are \"`web_hook`\" (or \"`webhook`\"). Both values refer to a channel where Http requests are used to deliver messages. | |\n| `address` | `string` | The address where notifications are delivered for this channel. | |\n| `params` | `object` | Additional parameters controlling delivery channel behavior. Optional. | |\n| params.`ttl` | `string` | The time-to-live in seconds for the notification channel. Default is 604800 seconds. | |\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"kind\": \"api#channel\",\n \"id\": string,\n \"resourceId\": string,\n \"resourceUri\": string,\n \"token\": string,\n \"expiration\": long\n}\n```\n\n| Property name | Value | Description | Notes |\n|---------------|----------|-------------------------------------------------------------------------------------------------------------------|-------|\n| `kind` | `string` | Identifies this as a notification channel used to watch for changes to a resource, which is \"`api#channel`\". | |\n| `id` | `string` | A UUID or similar unique string that identifies this channel. | |\n| `resourceId` | `string` | An opaque ID that identifies the resource being watched on this channel. Stable across different API versions. | |\n| `resourceUri` | `string` | A version-specific identifier for the watched resource. | |\n| `token` | `string` | An arbitrary string delivered to the target address with each notification delivered over this channel. Optional. | |\n| `expiration` | `long` | Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. | |"]]