Method: transitclass.get
指定されたクラス ID の交通機関クラスを返します。
HTTP リクエスト
GET https://walletobjects.googleapis.com/walletobjects/v1/transitClass/{resourceId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
resourceId |
string
クラスの一意の識別子。この ID は、発行者のすべてのクラスで一意である必要があります。この値は issuer ID の形式にする必要があります。identifier。前者は Google が発行し、後者は貴社が選択します。一意の識別子には、英数字、「.」、「_」、「-」のみを使用してください。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には TransitClass
のインスタンスが含まれます。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/wallet_object.issuer
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-13 UTC。
[null,null,["最終更新日 2025-03-13 UTC。"],[[["Retrieves a transit class using its unique identifier."],["The class ID should follow a specific format: issuer ID + your unique identifier."],["Request body should be empty, and a successful response returns the TransitClass object."],["Requires authorization with the `wallet_object.issuer` scope."]]],["The core content describes retrieving a transit class using its unique ID. A `GET` request is sent to a specified URL, formatted with gRPC Transcoding syntax. The `resourceId` path parameter, a unique string composed of issuer ID and an identifier, is required. The request body must be empty. A successful response returns a `TransitClass` object. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]