Method: tasklists.list
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
पुष्टि किए गए उपयोगकर्ता की सभी टास्क सूचियां दिखाता है. एक उपयोगकर्ता के पास एक बार में 2,000 सूचियां हो सकती हैं.
एचटीटीपी अनुरोध
GET https://tasks.googleapis.com/tasks/v1/users/@me/lists
यूआरएल में gRPC ट्रांसकोडिंग सिंटैक्स का इस्तेमाल किया गया है.
क्वेरी पैरामीटर
पैरामीटर |
maxResults |
integer
एक पेज पर टास्क की ज़्यादा से ज़्यादा सूचियां. ज़रूरी नहीं. डिफ़ॉल्ट रूप से, यह 1,000 पर सेट होता है. हालांकि, इसकी वैल्यू 1,000 से ज़्यादा नहीं हो सकती.
|
pageToken |
string
नतीजों वाले पेज की जानकारी देने वाला टोकन. ज़रूरी नहीं.
|
अनुरोध का मुख्य भाग
अनुरोध का मुख्य हिस्सा खाली होना चाहिए.
जवाब का मुख्य भाग
अगर एपीआई सही से जुड़ जाता है, ताे जवाब के मुख्य भाग में नीचे दिए गए स्ट्रक्चर शामिल होता है.
JSON के काेड में दिखाना |
{
"kind": string,
"etag": string,
"nextPageToken": string,
"items": [
{
object (TaskList )
}
]
} |
फ़ील्ड |
kind |
string
संसाधन का टाइप. यह हमेशा "tasks#taskLists" होता है.
|
etag |
string
संसाधन का ETag.
|
nextPageToken |
string
टोकन, जिसका इस्तेमाल इस नतीजे के अगले पेज का अनुरोध करने के लिए किया जा सकता है.
|
items[] |
object (TaskList )
टास्क की सूचियों का कलेक्शन.
|
अनुमति के दायरे
इसके लिए, OAuth के इनमें से किसी एक स्कोप की ज़रूरत होती है:
https://www.googleapis.com/auth/tasks
https://www.googleapis.com/auth/tasks.readonly
ज़्यादा जानकारी के लिए, अनुमति से जुड़ी गाइड देखें.
TaskLists
JSON के काेड में दिखाना |
{
"kind": string,
"etag": string,
"nextPageToken": string,
"items": [
{
object (TaskList )
}
]
} |
फ़ील्ड |
kind |
string
संसाधन का टाइप. यह हमेशा "tasks#taskLists" होता है.
|
etag |
string
संसाधन का ETag.
|
nextPageToken |
string
टोकन, जिसका इस्तेमाल इस नतीजे के अगले पेज का अनुरोध करने के लिए किया जा सकता है.
|
items[] |
object (TaskList )
टास्क की सूचियों का कलेक्शन.
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को 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,["# Method: tasklists.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.TaskLists.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [TaskLists](#TaskLists)\n - [JSON representation](#TaskLists.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nReturns all the authenticated user's task lists. A user can have up to 2000 lists at a time.\n\n### HTTP request\n\n`GET https://tasks.googleapis.com/tasks/v1/users/@me/lists`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------|-----------------------------------------------------------------------------------------------------------------|\n| `maxResults` | `integer` Maximum number of task lists returned on one page. Optional. The default is 1000 (max allowed: 1000). |\n| `pageToken` | `string` Token specifying the result page to return. Optional. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etag\": string, \"nextPageToken\": string, \"items\": [ { object (/workspace/tasks/reference/rest/v1/tasklists#TaskList) } ] } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Type of the resource. This is always \"tasks#taskLists\". |\n| `etag` | `string` ETag of the resource. |\n| `nextPageToken` | `string` Token that can be used to request the next page of this result. |\n| `items[]` | `object (`[TaskList](/workspace/tasks/reference/rest/v1/tasklists#TaskList)`)` Collection of task lists. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/tasks`\n- `https://www.googleapis.com/auth/tasks.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nTaskLists\n---------\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etag\": string, \"nextPageToken\": string, \"items\": [ { object (/workspace/tasks/reference/rest/v1/tasklists#TaskList) } ] } ``` |\n\n| Fields ||\n|-----------------|----------------------------------------------------------------------------------------------------------|\n| `kind` | `string` Type of the resource. This is always \"tasks#taskLists\". |\n| `etag` | `string` ETag of the resource. |\n| `nextPageToken` | `string` Token that can be used to request the next page of this result. |\n| `items[]` | `object (`[TaskList](/workspace/tasks/reference/rest/v1/tasklists#TaskList)`)` Collection of task lists. |"]]