Method: offerobject.list
指定された発行者 ID のすべてのクーポン オブジェクトのリストを返します。
HTTP リクエスト
GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject
この URL は gRPC Transcoding 構文を使用します。
クエリ パラメータ
パラメータ |
classId |
string
オブジェクトがリストされるクラスの ID。
|
token |
string
maxResults が指定されているが、maxResults より多数のオブジェクトがリストに含まれる場合に、次の結果を取得するために使用します。たとえば、200 個のオブジェクトを含むリストがあり、maxResults を 20 に設定してリストを呼び出した場合、リストからは最初の 20 個のオブジェクトとトークンが返されます。次の 20 個のオブジェクトを取得するには、maxResults を 20 に設定し、このトークンを指定して再度リストを呼び出します。
|
maxResults |
integer
リストから返される結果の最大数を示します。maxResults が定義されていない場合は、すべての結果が返されます。
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文に次の構造のデータが含まれます。
フィールド |
resources[] |
object (OfferObject )
リスト リクエストに対応するリソース。
|
pagination |
object (Pagination )
レスポンスのページ分け。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/wallet_object.issuer
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-21 UTC。
[null,null,["最終更新日 2024-11-21 UTC。"],[[["Retrieves a paginated list of all offer objects for a given issuer ID using the `GET` method."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Allows filtering by class ID and specifying the maximum number of results per page using query parameters."],["Returns an empty request body and a response body containing an array of offer objects and pagination details in JSON format."]]],["This outlines retrieving offer objects using a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/offerObject`. The `classId`, `token`, and `maxResults` parameters in the query are used to filter and paginate results. The request body must be empty. A successful response returns a JSON object containing an array of `OfferObject` resources and `Pagination` details. This process requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]