4

我正在尝试通过 Chat rest api 在 Google 聊天中发布消息,但它不起作用。注意:这些 api 之前工作正常。但从昨天开始,它不工作了。API:https ://chat.googleapis.com/v1/spaces/{space-id}/messages

请求正文:

{
  "text":"Post Message reply",
  "cards":[
    {
      "header":{
        "title":"Card attached",
        "subtitle":"check for subtitle",
        "imageStyle":"AVATAR"
      },
      "sections":[
        {
          "widgets":[
            {
              "keyValue":{
                "topLabel":"toplabel calue",
                "content":"new content for my hangout bot",
                "contentMultiline":true,
                "bottomLabel":"bottomlabel string displyed"
              }
            }
          ]
        }
      ]
    }
  ]
}

错误响应:

{
  "error":{
    "code":500,
    "message":"Internal error encountered.",
    "status":"INTERNAL"
  }
}
4

0 回答 0