Method: offerobject.addmessage
Dodaje komunikat do obiektu oferty, do którego odwołuje się podany identyfikator obiektu.
Żądanie HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}/addMessage
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator obiektu. Ten identyfikator musi być unikalny wśród wszystkich obiektów wydawcy. Ta wartość powinna mieć format issuer ID.identifier, gdzie pierwszy identyfikator jest wystawiany przez Google, a drugi jest wybierany przez Ciebie. Unikalny identyfikator powinien zawierać tylko znaki alfanumeryczne oraz znaki „.”, „_” lub „-”.
|
Treść żądania
Treść żądania zawiera wystąpienie elementu AddMessageRequest
.
Treść odpowiedzi
W przypadku powodzenia treść żądania zawiera dane o następującej strukturze:
Pola |
resource |
object (OfferObject )
Zaktualizowany zasób OfferObject.
|
Zakresy autoryzacji
Wymaga następującego zakresu OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-11-21 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-21 UTC."],[[["Adds a message to an existing offer object using its unique object ID."],["The request body should contain an `AddMessageRequest` as defined in the API reference."],["A successful response returns the updated `OfferObject` resource."],["Requires `wallet_object.issuer` OAuth scope for authorization."],["Uses the `POST` method and specific path parameters for the HTTP request."]]],["This outlines adding a message to an offer object via a `POST` request to `https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}/addMessage`. The `resourceId`, a unique identifier, is a required path parameter. The request body should be an `AddMessageRequest` instance. Upon success, the response body returns an updated `OfferObject`, structured in JSON. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]