Method: giftcardclass.addmessage
Dodaje komunikat do klasy karty podarunkowej, do której odwołuje się podany identyfikator klasy.
Żądanie HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage
Adres URL używa składni transkodowania gRPC.
Parametry ścieżki
Parametry |
resourceId |
string
Unikalny identyfikator klasy. Ten identyfikator musi być unikalny wśród wszystkich klas 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 (GiftCardClass )
Zaktualizowany zasób GiftCardClass.
|
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-07 UTC.
[null,null,["Ostatnia aktualizacja: 2024-11-07 UTC."],[[["This document details the process for adding a message to a specific gift card class using the Google Wallet API."],["The request is sent as a POST request to the specified URL with the gift card class ID as a path parameter."],["The request body should contain an `AddMessageRequest` object as defined in the API reference."],["Upon successful execution, the API returns the updated `GiftCardClass` object in the response body."],["This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This describes adding a message to a gift card class using a `POST` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/giftCardClass/{resourceId}/addMessage`. The `resourceId`, a unique class identifier, is a path parameter. The request body uses the `AddMessageRequest` format. A successful response returns a JSON object containing the updated `GiftCardClass` resource. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]