Method: giftcardobject.addmessage

向指定对象 ID 引用的礼品卡对象添加消息。

HTTP 请求

POST https://walletobjects.googleapis.com/walletobjects/v1/giftCardObject/{resourceId}/addMessage

网址采用 gRPC 转码语法。

路径参数

参数
resourceId

string

对象的唯一标识符。此 ID 在一个发卡机构的所有对象中必须是唯一的。此值应遵循 issuer ID 格式。identifier,其中前者由 Google 提供,后者由您自行选择。您的唯一标识符应仅包含字母数字字符、“.”“_”或“-”。

请求正文

请求正文包含一个 AddMessageRequest 实例。

响应正文

如果成功,响应正文将包含结构如下的数据:

JSON 表示法
{
  "resource": {
    object (GiftCardObject)
  }
}
字段
resource

object (GiftCardObject)

更新后的 GiftCardObject 资源。

授权范围

需要以下 OAuth 作用域:

  • https://www.googleapis.com/auth/wallet_object.issuer