Method: genericclass.addmessage
指定されたクラス ID の参照元の汎用クラスにメッセージを追加します。
HTTP リクエスト
POST https://walletobjects.googleapis.com/walletobjects/v1/genericClass/{resourceId}/addMessage
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
resourceId |
string
クラスの一意識別子。この ID は、発行者のすべてのクラスで一意である必要があります。この値には issuer ID.identifier の形式にする必要があります。前の部分は Google が発行するものであり、後の部分はご自身で選択するものです。一意識別子には、英数字、「.」、「_」、「-」のみを使用できます。
|
リクエスト本文
リクエストの本文には AddMessageRequest
のインスタンスが含まれます。
レスポンスの本文
クラスへの新しい発行者メッセージの追加に対するレスポンス。これには、更新された GenericClass 全体が含まれています。
成功した場合、レスポンスの本文には次の構造のデータが含まれます。
フィールド |
resource |
object (GenericClass )
更新された EventTicketClass リソース。
|
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/wallet_object.issuer
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-11-07 UTC。
[null,null,["最終更新日 2024-11-07 UTC。"],[[["Adds a new message to an existing generic class identified by a unique class ID."],["The request requires providing an `AddMessageRequest` in the body and uses the `POST` method."],["The response provides the updated `GenericClass` object, including the new message."],["Utilizes the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope."],["The class ID follows a specific format, \u003cvar translate=\"no\"\u003eissuer ID\u003c/var\u003e.\u003cvar translate=\"no\"\u003eidentifier\u003c/var\u003e, with constraints on the characters allowed in the identifier."]]],["This document outlines the process for adding a message to a generic class using a `POST` HTTP request to a specific URL. The request requires a unique `resourceId` in the path, formatted as `issuer ID.identifier`. The request body must include an `AddMessageRequest` instance. Successful requests return an updated `GenericClass` in JSON format, contained within a `resource` field. The process necessitates authorization via the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]