- pushplus功能简介
- 消息接口
- 发送消息示例
- 开放接口
- 开放接口说明
- AccessKey接口
- 消息接口
- 用户接口
- 消息token接口
- 群组接口
- 群组用户接口
- 渠道配置接口
- 功能设置接口
- 好友功能接口
- 预处理信息接口
测试预处理代码
POST
https://www.pushplus.plus/api/open/pre/test
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
access-key
string
必需
示例值:
d7b******62f
Body 参数application/json
content
string
预处理代码
contentType
integer
必需
message
string
测试消息内容
示例
{
"content": "content = content + 123",
"contentType": 1,
"message": "this is content"
}
示例代码
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/pre/test' \
--header 'access-key: d7b******62f' \
--header 'Content-Type: application/json' \
--data-raw '{
"content": "content = content + 123",
"contentType": 1,
"message": "this is content"
}'
返回响应
🟢200成功
application/json
Body
code
integer
响应码
msg
string
响应说明
data
string
响应数据
示例
{
"code": 200,
"msg": "请求成功",
"data": "this is content123"
}
修改于 2025-06-22 01:24:24