Method: offerobject.list
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Gibt eine Liste aller Angebotsobjekte für eine bestimmte Aussteller-ID zurück.
HTTP-Anfrage
GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject
Die URL verwendet die Syntax der gRPC-Transcodierung.
Abfrageparameter
Parameter |
classId |
string
Die ID der Klasse, deren Objekte aufgelistet werden.
|
token |
string
Ruft die nächste Gruppe von Ergebnissen ab, wenn maxResults angegeben ist, aber mehr als maxResults Objekte in einer Liste verfügbar sind. Wenn Sie beispielsweise eine Liste mit 200 Objekten haben und maxResults auf 20 gesetzt haben, gibt „list“ die ersten 20 Objekte und ein Token zurück. Ruf die Liste wieder auf, wobei maxResults auf 20 gesetzt ist und das Token zum Abrufen der nächsten 20 Objekte verwendet wird.
|
maxResults |
integer
Gibt die maximale Anzahl von Ergebnissen an, die von einer Liste zurückgegeben werden. Wenn maxResults nicht definiert ist, werden alle Ergebnisse zurückgegeben.
|
Anfragetext
Der Anfragetext muss leer sein.
Antworttext
Wenn der Vorgang erfolgreich ist, enthält der Antworttext Daten mit folgender Struktur:
Felder |
resources[] |
object (OfferObject )
Ressourcen, die der Listenanfrage entsprechen.
|
pagination |
object (Pagination )
Paginierung der Antwort.
|
Autorisierungsbereiche
Erfordert den folgenden OAuth-Bereich:
https://www.googleapis.com/auth/wallet_object.issuer
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-25 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-07-25 (UTC)."],[[["\u003cp\u003eRetrieves a paginated list of all offer objects for a given issuer ID using the \u003ccode\u003eGET\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eRequires the \u003ccode\u003ehttps://www.googleapis.com/auth/wallet_object.issuer\u003c/code\u003e OAuth scope for authorization.\u003c/p\u003e\n"],["\u003cp\u003eAllows filtering by class ID and specifying the maximum number of results per page using query parameters.\u003c/p\u003e\n"],["\u003cp\u003eReturns an empty request body and a response body containing an array of offer objects and pagination details in JSON format.\u003c/p\u003e\n"]]],["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"],null,["# Method: offerobject.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.OfferObjectListResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n\nReturns a list of all offer objects for a given issuer ID.\n\n### HTTP request\n\n`GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject`\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/offerobject#OfferObject) } ], \"pagination\": { object (/wallet/reference/rest/v1/Pagination) } } ``` |\n\n| Fields ||\n|---------------|----------------------------------------------------------------------------------------------------------------------------|\n| `resources[]` | `object (`[OfferObject](/wallet/reference/rest/v1/offerobject#OfferObject)`)` 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`"]]