Method: offerobject.get
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Restituisce l'oggetto offer con l'ID oggetto specificato.
Richiesta HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}
L'URL utilizza la sintassi di transcodifica gRPC.
Parametri del percorso
Parametri |
resourceId |
string
L'identificatore univoco di un oggetto. Questo ID deve essere univoco in tutti gli oggetti di un emittente. Questo valore deve essere nel formato issuer ID.identifier, dove la prima è rilasciata da Google e la seconda è scelta da te. L'identificatore univoco deve includere solo caratteri alfanumerici, ".", "_" o "-".
|
Corpo della richiesta
Il corpo della richiesta deve essere vuoto.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di OfferObject
.
Ambiti di autorizzazione
Richiede il seguente ambito OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[[["\u003cp\u003eRetrieves a specific offer object using its unique identifier.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an empty body and uses the \u003ccode\u003eGET\u003c/code\u003e method with a specific URL structure.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses provide the offer object details in the response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/wallet_object.issuer\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe object ID must follow a specific format including issuer and identifier components.\u003c/p\u003e\n"]]],["The core content describes retrieving an offer object using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}`. The `resourceId` is a unique string identifier following the format `issuer ID.identifier`. The request body must be empty, and the successful response will contain an `OfferObject` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The content also specifies the use of gRPC transcoding syntax in the URL.\n"],null,["- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n\nReturns the offer object with the given object ID.\n\nHTTP request\n\n`GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\nPath parameters\n\n| Parameters ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `resourceId` | `string` The unique identifier for an object. This ID must be unique across all objects from an issuer. This value should follow the format \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e where the former is issued by Google and latter is chosen by you. Your unique identifier should only include alphanumeric characters, '.', '_', or '-'. |\n\nRequest body\n\nThe request body must be empty.\n\nResponse body\n\nIf successful, the response body contains an instance of [OfferObject](/wallet/reference/rest/v1/offerobject#OfferObject).\n\nAuthorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/wallet_object.issuer`"]]