摆,就硬摆
Method | URL | Description |
---|---|---|
POST |
https://pasteme.tyrantg.com/api/create |
创建剪贴板 |
Content-Type: application/json
Name | Type | Description | Required |
---|---|---|---|
content | text | 剪贴板内容 | Yes |
password | string | 剪贴板密码 | No |
count_limit | int | 限制浏览次数 | No |
time_limit | int | 限制浏览时间(分钟) | No |
return_type | int | 返回链接类型 0:递增id 1:随机url 默认1 | No |
auto_password | int | 自动生成6位密码 0:不生成 1:生成 默认0 优先级低于password | No |
{
"content": "寄",
"password": "123456"
}
or
{
"content": "寄",
"password": "123456",
"time_limit": 60
}
or
{
"content": "寄",
"return_type": 0,
"auto_password": 1
}
Content-Type: application/json
Name | Type | Description |
---|---|---|
password | string | 密码 |
path | string | 文本地址 |
auth_code | string | 授权码 |
{
"return_code": 0,
"result_code": "SUCCESS",
"data": {
"password": "9u1XWm",
"path": "kt9smknsvaricptg",
"auth_code": "$2y$12$YCY5xmiavxeXThF7GVQwt.VCPIXQIWaGtjgQHZoFydJoy/FObPcZn"
},
"message": "请求成功"
}
Method | URL | Description |
---|---|---|
GET |
https://pasteme.tyrantg.com/api/getContent/:path |
获取剪贴板内容 |
Content-Type: application/json
path 结构:
无密码时为:path
有密码时为:path@password
Content-Type: application/json
{
"return_code": 0,
"result_code": "SUCCESS",
"data": "寄",
"message": "请求成功"
}
Method | URL | Description |
---|---|---|
POST |
https://pasteme.tyrantg.com/api/update |
更新剪贴板 |
Content-Type: application/json
Name | Type | Description | Required |
---|---|---|---|
content | text | 剪贴板内容 | Yes |
path | string | 剪贴板地址 | Yes |
auth_code | string | 授权码 | Yes |
refresh_code | int | 授权码刷新 0:不刷新,1:刷新 默认为0 | No |
refresh_password | int | 密码刷新 0:不刷新,1:刷新 默认为0 | No |
{
"content": "寄",
"path": "1234567890123456@123456",
"auth_code": "$2y$12$2PVfgopS7HunyYKo8v8i1uzIOzxv0rvVcowDvEjRxWKtISfceZR42"
}
or
{
"content": "寄",
"path": "1234567890123456@123456",
"auth_code": "$2y$12$2PVfgopS7HunyYKo8v8i1uzIOzxv0rvVcowDvEjRxWKtISfceZR42",
"refresh_code": 1
}
Content-Type: application/json
Name | Type | Description |
---|---|---|
password | string | 密码 |
path | string | 文本地址 |
auth_code | string | 授权码 |
{
"return_code": 0,
"result_code": "SUCCESS",
"data": {
"password": "9u1XWm",
"path": "kt9smknsvaricptg",
"auth_code": "$2y$12$YCY5xmiavxeXThF7GVQwt.VCPIXQIWaGtjgQHZoFydJoy/FObPcZn"
},
"message": "请求成功"
}