返回一张天堂赦免令的表情包图片
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| msg | string | 是 | 生成图片的内容信息,不可以超过5个字 | 爱好尴尬 |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "msg",
"type": "string",
"required": true,
"description": "生成图片的内容信息,不可以超过5个字",
"example": "爱好尴尬"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "天堂赦免令",
"description": "返回一张天堂赦免令的表情包图片",
"version": "1.0.0"
},
"paths": {
"/api/bqbjk/st/api.php": {
"get": {
"summary": "天堂赦免令",
"description": "返回一张天堂赦免令的表情包图片",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "msg",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "爱好尴尬"
},
"description": "生成图片的内容信息,不可以超过5个字"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "天堂赦免令",
"description": "返回一张天堂赦免令的表情包图片",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "msg",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "爱好尴尬"
},
"description": "生成图片的内容信息,不可以超过5个字"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api-v2.317ak.com",
"description": "当前访问入口(https)"
}
]
}
返回一张天堂赦免令表情包图片。
适用于需要生成该类表情内容的应用场景。
接口面向开发者提供表情图片调用服务。
https://api-v2.317ak.com/api/bqbjk/st/api.php
支持 GET、POST 请求方式。
接口调用需要提供密钥进行鉴权。
首选鉴权方式:Query 参数传递,在请求中添加 key 参数,例如 key=…。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
key |
string | 是 | 接口调用密钥,需填写有效的接口调用密钥。 |
msg |
string | 是 | 生成图片的内容信息,不可以超过 5 个字。 |
接口调用成功后,返回天堂赦免令表情包图片内容。
由于接口返回内容为图片资源,成功响应示例以实际返回的图片内容为准。
| 字段 | 类型 | 说明 |
|---|---|---|
| 图片内容 | image | 返回生成的天堂赦免令表情包图片 |
| msg | string | 生成图片时提交的内容信息 |
接口发生业务异常时,返回 JSON 格式错误信息:
{
"code": 0,
"msg": "未提供调用密钥",
"errcode": 11001
}
| errcode | 含义 |
|---|---|
| 11001 | 未提供调用密钥 |
| 11002 | 密钥错误 |
| 11003 | 密钥已禁用 |
| 11004 | 积分余额不足 |
| 11005 | 请求过于频繁(QPM 限制) |
| 11006 | 接口维护中 |
| 11007 | 接口已禁用 |
| 11008 | 接口不可用 |
| 11009 | 密钥校验暂不可用 |
| 11010 | 积分系统暂不可用 |
| 11011 | 收费接口须提供有效密钥 |
| 11012 | 鉴权方式错误 |
| 11013 | 接口不存在 |
| 11014 | ***地址无效 |
| 11015 | ***地址不允许 |
| 11016 | ***请求失败 |
| 11017 | 服务暂不可用 |
| 11018 | 请求方式不允许 |
| 11019 | 当前IP不在白名单内 |
| 11020 | 启用出口代理须提供有效密钥 |
| 11021 | 未配置可用出口代理 |
| 11022 | 出口代理不可用 |
| 11023 | 密钥已过期 |
| 11024 | 令牌分配积分不足 |
curl -G "https://api-v2.317ak.com/api/bqbjk/st/api.php" \
--data-urlencode "key=你的接口调用密钥" \
--data-urlencode "msg=爱好尴尬"
// PHP
## 注意事项
- 调用接口前请妥善保管接口调用密钥,避免将密钥公开发布、提交到公开代码仓库或直接暴露在前端页面中。
- 本接口需要通过 Query 参数传递密钥,请在请求时正确填写 `key` 参数,否则无法正常调用。
- `msg` 参数用于生成图片内容信息,填写内容长度不可超过 5 个字,建议使用简短明确的文字描述。
- 请根据实际使用场景控制调用频率,避免短时间内大量重复请求影响接口稳定性。
- 接口调用请使用 HTTPS 请求地址,确保请求过程中的数据传输安全。
- 免费接口资源有限,请合理使用,避免无效请求或批量滥用。
- 参数值需符合接口要求,参数缺失、格式错误或内容超出限制可能导致请求失败。curl "https://api-v2.317ak.com/api/bqbjk/st/api.php?key=YOUR_API_KEY&msg=爱好尴尬"