- 注册享免费测试
- 开发说明
- 开发API
- 登录模块
- 联系人相关接口
- 群管理接口
- 消息模块
- 朋友圈模块
- 标签模块
- 个人模块
- 收藏夹模块
- 视频号模块
发送文字消息
POST
/message/postText
基础API/消息模块
注意#
请求参数
Header 参数
VideosApi-token
string
必需
示例值:
{{VideosApi-token}}
Body 参数application/json
appId
string
设备ID
toWxid
string
好友/群的ID
content
string
消息内容
ats
string
可选
示例
{
"appId": "{{appid}}",
"toWxid": "34757816141@chatroom",
"ats": "wxid_phyyedw9xap22",
"content": "@As test"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://api.videostui.com/finder/v2/api/message/postText' \
--header 'VideosApi-token: {{VideosApi-token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"appId": "{{appid}}",
"toWxid": "34757816141@chatroom",
"ats": "wxid_phyyedw9xap22",
"content": "@As test"
}'
返回响应
🟢200成功
application/json
Body
ret
integer
必需
msg
string
必需
data
object
必需
toWxid
string
接收人的wxid
createTime
integer
发送时间
msgId
integer
消息ID
newMsgId
integer
消息ID
type
integer
消息类型
示例
{
"ret": 200,
"msg": "操作成功",
"data": {
"toWxid": "34757816141@chatroom",
"createTime": 1703841160,
"msgId": 0,
"newMsgId": 3768973957878705000,
"type": 1
}
}

添加客服微信
其他API相关问题咨询


修改于 2024-04-02 10:44:44