ज़रूरी नहीं. लौटाने के लिए सदस्यताओं की ज़्यादा से ज़्यादा संख्या. यह सेवा इस वैल्यू से कम वैल्यू दिखा सकती है.
अगर इसकी जानकारी नहीं दी जाती या 0 पर सेट किया जाता है, तो 50 सदस्यताएं तक दिखाई जा सकती हैं.
ज़्यादा से ज़्यादा वैल्यू 100 है. अगर वैल्यू 100 से ज़्यादा तय की जाती है, तो सिस्टम सिर्फ़ 100 सदस्यताएं दिखाता है.
pageToken
string
ज़रूरी नहीं. पेज टोकन, जो सदस्यता के पिछले कॉल से मिला है. बाद वाले पेज को फिर से पाने के लिए यह पैरामीटर दें.
पेजों पर नंबर डालते समय, फ़िल्टर की वैल्यू उस कॉल से मैच होनी चाहिए जिससे पेज टोकन मिला है. कोई अलग वैल्यू पास करने पर, अनचाहे नतीजे मिल सकते हैं.
filter
string
ज़रूरी है. क्वेरी फ़िल्टर.
इवेंट टाइप (event_types) और टारगेट रिसॉर्स (target_resource) के हिसाब से, सदस्यताओं को फ़िल्टर किया जा सकता है.
आपको अपनी क्वेरी में कम से कम एक इवेंट टाइप तय करना होगा. एक से ज़्यादा तरह के इवेंट फ़िल्टर करने के लिए, OR ऑपरेटर का इस्तेमाल करें.
इवेंट टाइप और टारगेट रिसॉर्स, दोनों के हिसाब से फ़िल्टर करने के लिए, AND ऑपरेटर का इस्तेमाल करें और रिसॉर्स का पूरा नाम बताएं, जैसे कि //chat.googleapis.com/spaces/{space}.
उदाहरण के लिए, नीचे दी गई क्वेरी मान्य हैं:
event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created"
event_types:"google.workspace.chat.message.v1.created" AND
target_resource="//chat.googleapis.com/spaces/{space}"
( event_types:"google.workspace.chat.membership.v1.updated" OR
event_types:"google.workspace.chat.message.v1.created" ) AND
target_resource="//chat.googleapis.com/spaces/{space}"
सर्वर, INVALID_ARGUMENT गड़बड़ी वाली अमान्य क्वेरी को अस्वीकार करता है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2024-08-22 (UTC) को अपडेट किया गया."],[[["Lists existing Google Workspace subscriptions, allowing retrieval of details like event types and target resources."],["Enables filtering of subscriptions by event types and target resource using query parameters, requiring at least one event type for filtering."],["Uses pagination to retrieve large lists of subscriptions, providing a `nextPageToken` for accessing subsequent pages."],["Requires specific OAuth scopes for authorization, such as `https://www.googleapis.com/auth/chat.bot` or `https://www.googleapis.com/auth/chat.spaces`, to access and manage subscriptions."],["Returns a response body containing a list of subscriptions and a token for pagination if further pages exist."]]],["This document outlines how to list Google Workspace subscriptions using a `GET` request to `https://workspaceevents.googleapis.com/v1/subscriptions`. Key parameters include `pageSize` (max 100) to limit results, `pageToken` for pagination, and a mandatory `filter` to specify event types and/or target resources using `OR` and `AND` operators. The request body is empty. The response body contains a list of `subscriptions` and an optional `nextPageToken` for subsequent pages. Specific OAuth scopes are required for authorization.\n"]]