Method: transitobject.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
HTTP 要求
GET https://walletobjects.googleapis.com/walletobjects/v1/transitObject
這個網址使用 gRPC 轉碼語法。
查詢參數
參數 |
classId |
string
要列出其物件的類別 ID。
|
token |
string
如有指定 maxResults ,但清單中的物件數量超過 maxResults ,則可使用這個項目取得下一組結果。舉例來說,如果您有包含 200 個物件的清單,且您在呼叫清單的 maxResults 設為 20 時,則清單會傳回前 20 個物件和一個符記。只要在 maxResults 設為 20 的情況下使用符記再次呼叫清單,即可取得接下來的 20 個物件。
|
maxResults |
integer
表示清單傳回的結果數量上限。如未定義 maxResults ,則會傳回所有結果。
|
回應主體
欄位 |
resources[] |
object (TransitObject )
與清單要求相對應的資源。
|
pagination |
object (Pagination )
回應的分頁。
|
授權範圍
需要下列 OAuth 範圍:
https://www.googleapis.com/auth/wallet_object.issuer
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[[["\u003cp\u003eThis endpoint retrieves all transit objects associated with a specific issuer ID using a GET request.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an empty body and uses query parameters like \u003ccode\u003eclassId\u003c/code\u003e, \u003ccode\u003etoken\u003c/code\u003e, and \u003ccode\u003emaxResults\u003c/code\u003e for filtering and pagination.\u003c/p\u003e\n"],["\u003cp\u003eA successful response includes a list of transit objects and pagination details in JSON format.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/wallet_object.issuer\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],["This outlines retrieving transit objects for a specific issuer ID using a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/transitObject`. The request requires parameters like `classId`, `token` (for pagination), and `maxResults`. The request body must be empty. A successful response returns a JSON object containing an array of `TransitObject` resources and `pagination` details. Access requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"],null,["# Method: transitobject.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.TransitObjectListResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nReturns a list of all transit objects for a given issuer ID.\n\n### HTTP request\n\n`GET https://walletobjects.googleapis.com/walletobjects/v1/transitObject`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Query parameters\n\n| Parameters ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `classId` | `string` The ID of the class whose objects will be listed. |\n| `token` | `string` Used to get the next set of results if `maxResults` is specified, but more than `maxResults` objects are available in a list. For example, if you have a list of 200 objects and you call list with `maxResults` set to 20, list will return the first 20 objects and a token. Call list again with `maxResults` set to 20 and the token to get the next 20 objects. |\n| `maxResults` | `integer` Identifies the max number of results returned by a list. All results are returned if `maxResults` isn't defined. |\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| ``` { \"resources\": [ { object (/wallet/reference/rest/v1/transitobject#TransitObject) } ], \"pagination\": { object (/wallet/reference/rest/v1/Pagination) } } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------------|\n| `resources[]` | `object (`[TransitObject](/wallet/reference/rest/v1/transitobject#TransitObject)`)` Resources corresponding to the list request. |\n| `pagination` | `object (`[Pagination](/wallet/reference/rest/v1/Pagination)`)` Pagination of the response. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/wallet_object.issuer`"]]