REST Resource: channels
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
संसाधन: चैनल
यह सूचना चैनल, संसाधन में हुए बदलावों को ट्रैक करने के लिए इस्तेमाल किया जाता है.
JSON के काेड में दिखाना |
{
"params": {
string: string,
...
},
"payload": boolean,
"id": string,
"resourceId": string,
"resourceUri": string,
"token": string,
"expiration": string,
"type": string,
"address": string,
"kind": string
} |
फ़ील्ड |
params |
map (key: string, value: string)
डिलीवरी चैनल के व्यवहार को कंट्रोल करने वाले अतिरिक्त पैरामीटर. ज़रूरी नहीं. यह एक ऐसा ऑब्जेक्ट है जिसमें "key": value जोड़े की सूची होती है. उदाहरण: { "name": "wrench", "mass": "1.3kg", "count": "3" } .
|
payload |
boolean
बूलियन वैल्यू, जिससे यह पता चलता है कि पेलोड चाहिए या नहीं. ज़रूरी नहीं.
|
id |
string
यह चैनल की पहचान करने वाला यूयूआईडी या इसी तरह की कोई यूनीक स्ट्रिंग है.
|
resourceId |
string
यह एक ओपेक आईडी है. इससे उस संसाधन की पहचान होती है जिसे इस चैनल पर देखा जा रहा है. एपीआई के अलग-अलग वर्शन पर स्टेबल.
|
resourceUri |
string
देखे गए संसाधन के लिए, वर्शन के हिसाब से आइडेंटिफ़ायर.
|
token |
string
यह एक ऐसी स्ट्रिंग होती है जिसे टारगेट पते पर भेजा जाता है. इस चैनल पर भेजी जाने वाली हर सूचना के साथ इसे भेजा जाता है. ज़रूरी नहीं.
|
expiration |
string (int64 format)
सूचना चैनल की समयसीमा खत्म होने की तारीख और समय. इसे यूनिक्स टाइमस्टैंप के तौर पर, मिलीसेकंड में दिखाया जाता है. ज़रूरी नहीं.
|
type |
string
इस चैनल के लिए इस्तेमाल किए गए डिलीवरी मैकेनिज़्म का टाइप. मान्य वैल्यू "web_hook" या "webhook" हैं.
|
address |
string
वह पता जहां इस चैनल के लिए सूचनाएं भेजी जाती हैं.
|
kind |
string
इससे यह पता चलता है कि यह सूचना देने वाला चैनल है. इसका इस्तेमाल किसी संसाधन में होने वाले बदलावों पर नज़र रखने के लिए किया जाता है. यह संसाधन api#channel है.
|
तरीके |
|
इस चैनल के ज़रिए संसाधनों को देखना बंद कर देता है. |
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,["# REST Resource: channels\n\n- [Resource: Channel](#Channel)\n - [JSON representation](#Channel.SCHEMA_REPRESENTATION)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Channel\n-----------------\n\nA notification channel used to watch for resource changes.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"params\": { string: string, ... }, \"payload\": boolean, \"id\": string, \"resourceId\": string, \"resourceUri\": string, \"token\": string, \"expiration\": string, \"type\": string, \"address\": string, \"kind\": string } ``` |\n\n| Fields ||\n|---------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `params` | `map (key: string, value: string)` Additional parameters controlling delivery channel behavior. Optional. An object containing a list of `\"key\": value` pairs. Example: `{ \"name\": \"wrench\", \"mass\": \"1.3kg\", \"count\": \"3\" }`. |\n| `payload` | `boolean` A Boolean value to indicate whether payload is wanted. Optional. |\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` | `string (`[int64](https://developers.google.com/discovery/v1/type-format)` format)` Date and time of notification channel expiration, expressed as a Unix timestamp, in milliseconds. Optional. |\n| `type` | `string` The type of delivery mechanism used for this channel. Valid values are \"web_hook\" or \"webhook\". |\n| `address` | `string` The address where notifications are delivered for this channel. |\n| `kind` | `string` Identifies this as a notification channel used to watch for changes to a resource, which is `api#channel`. |\n\n| Methods ------- ||\n|------------------------------------------------------------------|------------------------------------------------|\n| ### [stop](/workspace/drive/api/reference/rest/v3/channels/stop) | Stops watching resources through this channel. |"]]