超级幸福举牌表情图片,可以在图片上面写名字(只能两个字)
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| msg | string | 是 | 要添加的文字内容 | 倾梦 |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "msg",
"type": "string",
"required": true,
"description": "要添加的文字内容",
"example": "倾梦"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "超级幸福",
"description": "超级幸福举牌表情图片,可以在图片上面写名字(只能两个字)",
"version": "1.0.0"
},
"paths": {
"\/api\/bqbjk\/cjxf\/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": "要添加的文字内容"
}
],
"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": "要添加的文字内容"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application\/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https:\/\/api.317ak.com",
"description": "当前访问入口(https)"
}
]
}
用于生成“超级幸福”举牌表情图片,可在图片上添加指定名字或文字内容。适用于需要制作个性化表情图片的用户。
https://api.317ak.com/api/bqbjk/cjxf/api.php
GET、POST
接口调用必须提供密钥,首选通过 Query 参数 key 传递。接口免费调用。
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
key |
string | 是 | 接口调用密钥,通过 Query 参数传递,即 key=…。 |
msg |
string | 是 | 要添加到图片上的文字内容,仅支持两个字。例如:倾梦。 |
接口成功处理请求后返回超级幸福举牌表情图片。由于接口资料未提供固定的成功响应原文或 JSON 返回示例,成功响应以实际生成的图片内容为准。
成功响应为图片结果,不提供可供解析的 JSON 字段。
| 字段 | 类型 | 说明 |
|---|---|---|
| 图片内容 | Image | 根据请求参数 msg 生成的超级幸福举牌表情图片,图片中包含指定文字。 |
接口发生业务错误时,返回 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 | 令牌分配积分不足 |
| 11025 | 该密钥无权调用此接口 |
curl -G 'https://api.317ak.com/api/bqbjk/cjxf/api.php' \
--data-urlencode 'key=你的调用密钥' \
--data-urlencode 'msg=倾梦'
// PHP
$url = 'https://api.317ak.com/api/bqbjk/cjxf/api.php';
$params = [
'key' => '你的调用密钥',
'msg' => '倾梦',
];
$response = file_get_contents($url. '?'. http_build_query($params));
echo $response;
key 为必填参数,请妥善保管接口调用密钥,不要将密钥直接暴露在网页前端、客户端源码或公开代码仓库中。key=…。调用地址为 https://api.317ak.com/api/bqbjk/cjxf/api.php,建议使用 HTTPS 请求。msg 为必填参数,用于生成图片中的文字内容,只能填写两个字。例如:倾梦。超出两个字可能无法按预期生成图片。GET 和 POST 请求;无论采用哪种请求方式,都应确保 key 和 msg 参数完整传递。curl -G 'https://api.317ak.com/api/bqbjk/cjxf/api.php' \
--data-urlencode 'key=YOUR_API_KEY' \
--data-urlencode 'msg=倾梦'