Method: eventticketobject.addmessage
Dodaje komunikat do obiektu biletu na wydarzenie, do którego odwołuje się podany identyfikator obiektu.
Żądanie HTTP
POST https://walletobjects.googleapis.com/walletobjects/v1/eventTicketObject/{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 (EventTicketObject )
Zaktualizowany zasób EventTicketObject.
|
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 endpoint allows you to add a message to an existing event ticket object using a POST request."],["You need to provide the unique object ID as a path parameter to identify the target event ticket."],["The request body should contain an `AddMessageRequest` object with the message details."],["A successful response will include the updated `EventTicketObject` resource."],["This operation requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This describes adding a message to an event ticket object via a POST request to `https://walletobjects.googleapis.com/walletobjects/v1/eventTicketObject/{resourceId}/addMessage`. The `resourceId`, a unique object identifier, is a path parameter. The request body should be an `AddMessageRequest`. A successful response includes the updated `EventTicketObject` within a JSON object, under the field `resource`. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]