恰饭广告 感谢支持
立即入驻

接口地址

https://www.vxras.com/api/v1/qq

请求方式

GET/POST

接口描述

QQ加好友链接生成接口

请求参数

参数名类型必填位置默认值示例值说明
qqstring自动-82719519QQ号

请求头

Header名必填说明

在线测试

代码示例

curl -X GET "https://www.vxras.com/api/v1/qq"?qq=82719519
<?php
$url = "https://www.vxras.com/api/v1/qq";
$data = array(
    "qq" => "82719519"
);
$headers = array(

);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
// 使用 Fetch API
const url = "https://www.vxras.com/api/v1/qq";
const data = {
  "qq": "82719519"
};

const options = {
  method: "GET",
  headers: {

  },
  body: JSON.stringify(data),
};

fetch(url, options)
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error("Error:", error));
# 使用 requests 库
import requests

url = "https://www.vxras.com/api/v1/qq"
data = {
    "qq": "82719519"
}

headers = {

}

response = requests.post(url, data=data, headers=headers)

print(response.json())

响应码

响应码说明
302重定向到目标卡片

错误码

错误码说明
400失败
评论 抢沙发

请登录后发表评论

    暂无评论内容