Method: loyaltyobject.update
Aggiorna l'oggetto fedeltà a cui fa riferimento l'ID oggetto specificato.
Richiesta HTTP
PUT https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{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 contiene un'istanza di LoyaltyObject
.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza di LoyaltyObject
.
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-03-13 UTC.
[null,null,["Ultimo aggiornamento 2025-03-13 UTC."],[[["This document explains how to update a loyalty object using the Google Wallet API."],["You'll need to use a `PUT` request to the specified URL, including the object's unique identifier."],["The request body should contain the updated loyalty object data in JSON format according to the `LoyaltyObject` schema."],["A successful response will return the updated `LoyaltyObject`."],["You must have the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope to authorize this request."]]],["This describes how to update a loyalty object using a PUT request. The request URL is `https://walletobjects.googleapis.com/walletobjects/v1/loyaltyObject/{resourceId}`, where `resourceId` uniquely identifies the object. The request body must contain a `LoyaltyObject` instance. The response body will also be a `LoyaltyObject` upon success. This action requires `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization. The `resourceId` should follow the format \u003cvar\u003eissuer ID\u003c/var\u003e.\u003cvar\u003eidentifier\u003c/var\u003e.\n"]]