测试

测试

接口信息
总调用: 48
最后更新: 2026-01-14
调用权限: 密钥调用
调用价格: 不收费
请求信息
https://test.suppx.cn
未开放第二接入方式
请求参数

此接口无需请求参数

在线测试
此处将显示接口返回结果...
调用示例
PHP 调用示例
<?php $apiUrl = '$request_url'; $apiKey = ''; // 替换为您的API密钥 // 准备请求参数 $params = [ // 可以添加其他参数 ]; // 构建查询字符串 $queryString = http_build_query($params); // 初始化cURL $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $apiUrl . '?' . $queryString); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 执行请求 $response = curl_exec($ch); if (curl_errno($ch)) { echo '请求错误: ' . curl_error($ch); } else { // 尝试解析JSON响应 $json = json_decode($response, true); if (json_last_error() === JSON_ERROR_NONE) { print_r($json); } else { echo $response; } } // 关闭cURL资源 curl_close($ch);
Python 调用示例
import requests api_url = "$request_url" api_key = "" # 替换为您的API密钥 # 准备请求参数 params = { # 可以添加其他参数 } try: response = requests.get(api_url, params=params) response.raise_for_status() # 检查请求是否成功 # 尝试解析JSON响应 try: json_response = response.json() print(json_response) except ValueError: print(response.text) except requests.exceptions.RequestException as e: print(f"请求错误: {e}")
Node.js 调用示例
'; // 替换为实际API密钥 // 准备请求参数 const params = { // 可以添加其他参数 }; // 使用axios axios.get(apiUrl, { params }) .then(response => { try { // 如果是JSON响应 if (typeof response.data === 'object') { console.log(JSON.stringify(response.data, null, 2)); } else { console.log(response.data); } } catch (e) { console.log(response.data); } }) .catch(error => { console.error('请求失败:', error.message); }); // 或者使用原生https模块 /* const querystring = require('querystring'); const query = querystring.stringify(params); https.get(`${apiUrl}?${query}`, (res) => { let data = ''; res.on('data', (chunk) => data += chunk); res.on('end', () => { try { console.log(JSON.parse(data)); } catch { console.log(data); } }); }).on('error', (err) => { console.error('Error:', err.message); }); */