- pushplus功能简介
- 消息接口
- 发送消息示例
- 开放接口
- 开放接口说明
- AccessKey接口
- 消息接口
- 用户接口
- 消息token接口
- 群组接口
- 群组用户接口
- 渠道配置接口
- 功能设置接口
- 好友功能接口
- 预处理信息接口
新增群组
POST
https://www.pushplus.plus/api/open/topic/add
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
access-key
string
必需
示例值:
d7b******62f
Body 参数application/json
topicCode
string
群组编码
topicName
string
群组名称
contact
string
联系方式
introduction
string
群组简介
receiptMessage
string
加入后回复内容
appId
string
可选
示例
{
"topicCode": "pushplus",
"topicName": "推送加",
"contact": "联系方式",
"introduction": "群组简介",
"receiptMessage": "关注后回复",
"appId": "微信公众号Id"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://www.pushplus.plus/api/open/topic/add' \
--header 'access-key: d7b******62f' \
--header 'Content-Type: application/json' \
--data-raw '{
"topicCode": "pushplus",
"topicName": "推送加",
"contact": "联系方式",
"introduction": "群组简介",
"receiptMessage": "关注后回复",
"appId": "微信公众号Id"
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
msg
string
响应说明
data
integer
新建群组的群组编号
示例
{
"code": 200,
"msg": "执行成功",
"data": 2
}
修改于 2025-06-22 00:13:35