广播一条消息。发送到当前登录用户Inbox联系人列表中所有的好友和群组。
Request
HTTP request
POST https://www.featapi.com/api/party/message/broadcast/
Authorization
该请求需要授权以下scopes访问权限:
Scopes |
---|
party_message |
For more information, see the authentication and authorization page.
Request body
In the request body, supply a Party.Message resource with the following properties:
Property name | Value | Description | Notes |
---|---|---|---|
必填 | |||
content | string | 消息内容 |
注意:广播是当前登录用户向联系人列表的所有好友和群组,各发送一条相同内容的广播消息,无需指定任何接收目标。
Response
如果请求成功,该API返回当前用户广播的Party.Message消息数据在响应体信息。
201 Broadcast a message successfully
{
"data": {
"id": 22592,
"from_user": 7815769374283,
"from_name": "WenWei Yang",
"to_user": 7815769374283,
"to_name": "WenWei Yang",
"to_group": null,
"content": "消息内容",
"message_type": 300,
"send_time": "2020-06-11T11:14:54.602885Z",
"location": "USA•New York",
"timezone": "America/New_York",
"detail": { }
}
}
400 Validation Exception
示例返回数据可参考 API Common – Validation Exception