返回一张羡慕的表情包图片
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| key | string | 是 | 接口调用密钥 | |
| string | 是 | 需要生成的 QQ 号 | 1945735 |
[
{
"name": "key",
"type": "string",
"required": true,
"description": "接口调用密钥",
"example": ""
},
{
"name": "qq",
"type": "string",
"required": true,
"description": "需要生成的 QQ 号",
"example": "1945735"
}
]
{
"openapi": "3.1.1",
"info": {
"title": "羡慕",
"description": "返回一张羡慕的表情包图片",
"version": "1.0.0"
},
"paths": {
"/api/bqbjk/xianmu/api.php": {
"get": {
"summary": "羡慕",
"description": "返回一张羡慕的表情包图片",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "qq",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "1945735"
},
"description": "需要生成的 QQ 号"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
},
"post": {
"summary": "羡慕",
"description": "返回一张羡慕的表情包图片",
"parameters": [
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "接口调用密钥"
},
{
"name": "qq",
"in": "query",
"required": true,
"schema": {
"type": "string",
"example": "1945735"
},
"description": "需要生成的 QQ 号"
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object"
}
}
}
}
}
}
}
},
"servers": [
{
"url": "https://api.317ak.com",
"description": "当前访问入口(https)"
}
]
}
返回一张羡慕主题的表情包图片,适用于表情分类相关调用场景。
接口可用于根据 QQ 号生成对应的羡慕表情内容。
https://api-v2.317ak.com/api/bqbjk/xianmu/api.php
GET, POST
调用接口需要使用密钥鉴权,请在请求参数中通过 Query 方式传递密钥:
key=接口调用密钥
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| key | string | 是 | 接口调用密钥,需通过 Query 参数传递。 |
| string | 是 | 需要生成的 QQ 号,例如:1945735。 |
接口调用成功后,将返回一张羡慕主题的表情包图片。
| 字段 | 类型 | 说明 |
|---|---|---|
| 图片内容 | 图片 | 返回的羡慕表情包图片资源 |
| key | string | 接口调用密钥 |
| string | 生成表情包所使用的 QQ 号 |
接口发生异常时,返回统一 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/xianmu/api.php' \
--data-urlencode 'key=YOUR_API_KEY' \
--data-urlencode 'qq=1945735'
// 语言:PHP
$url = 'https://api-v2.317ak.com/api/bqbjk/xianmu/api.php';
$params = [
'key' => 'YOUR_API_KEY',
'qq' => '1945735',
];
$requestUrl = $url. '?'. http_build_query($params);
$response = file_get_contents($requestUrl);
if ($response === false) {
exit('请求失败');
}
echo $response;
key 参数正确传递,否则可能导致接口调用失败。qq 参数为必填项,请传入有效的 QQ 号,例如 1945735,参数格式错误可能影响生成结果。#!/bin/sh
# 羡慕表情包接口调用
URL='https://api-v2.317ak.com/api/bqbjk/xianmu/api.php'
curl -G "$URL" \
--data-urlencode 'key=YOUR_API_KEY' \
--data-urlencode 'qq=1945735'