开放、强大的 API 接口,助力您的业务快速发展
多重安全验证,数据加密传输,保障您的业务安全
高性能架构,99.9% 可用性,支持高并发访问
详细的 API 文档和示例代码,快速上手
专业技术团队,提供 7x24 小时技术支持
首先您需要注册一个账号,并完成实名认证
在后台申请成为开发者,获取 API 访问权限
在开发者后台获取 AppID 和 AppSecret
参考 API 文档,开始集成到您的应用中
/api.php?method=verify
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| license_key | string | 是 | 卡密密钥 |
| device_fingerprint | string | 是 | 设备指纹 |
/api.php?method=activate
/api.php?method=status
/api.php?method=heartbeat
/api.php?method=unbind
/api.php?method=statistics
<?php
/**
* 卡密验证示例
*/
$licenseKey = 'YOUR_LICENSE_KEY';
$deviceFingerprint = 'DEVICE_FINGERPRINT';
$apiUrl = 'http://geo.com/api.php?method=verify';
// 构建请求数据
$data = [
'license_key' => $licenseKey,
'device_fingerprint' => $deviceFingerprint,
'timestamp' => time()
];
// 发送 POST 请求
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiUrl);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// 解析响应
$result = json_decode($response, true);
if ($result['code'] === 200) {
echo "验证成功!";
print_r($result['data']);
} else {
echo "验证失败:" . $result['message'];
}
?>
/**
* 卡密验证示例
*/
async function verifyLicense(licenseKey, deviceFingerprint) {
const apiUrl = 'http://geo.com/api.php?method=verify';
const data = {
license_key: licenseKey,
device_fingerprint: deviceFingerprint,
timestamp: Math.floor(Date.now() / 1000)
};
try {
const response = await fetch(apiUrl, {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify(data)
});
const result = await response.json();
if (result.code === 200) {
console.log('验证成功!', result.data);
return result.data;
} else {
console.error('验证失败:', result.message);
throw new Error(result.message);
}
} catch (error) {
console.error('请求失败:', error);
throw error;
}
}
// 使用示例
verifyLicense('YOUR_LICENSE_KEY', 'DEVICE_FINGERPRINT')
.then(data => {
console.log('卡密信息:', data);
})
.catch(error => {
console.error('错误:', error);
});
# 卡密验证
curl -X POST "http://geo.com/api.php?method=verify" \
-H "Content-Type: application/json" \
-d '{
"license_key": "YOUR_LICENSE_KEY",
"device_fingerprint": "DEVICE_FINGERPRINT",
"timestamp": 1234567890
}'
# 查询卡密状态
curl -X GET "http://geo.com/api.php?method=status&license_key=YOUR_LICENSE_KEY"
登录后台,在「开发者中心」申请 API 访问权限,审核通过后即可获得 AppID 和 AppSecret。
是的,为了保证系统稳定性,API 调用频率限制为每分钟 100 次。如需更高频率,请联系客服。
| 错误码 | 说明 |
|---|---|
| 200 | 成功 |
| 400 | 请求参数错误 |
| 401 | 未授权访问 |
| 403 | 卡密无效或已过期 |
| 500 | 服务器内部错误 |
我们提供了测试环境,您可以在测试环境中免费测试 API 功能。测试环境地址:http://test.geo.com/api.php
在开发过程中遇到任何问题,都可以通过以下方式联系我们:
sWWupport@geo.com
QQ: 12345WW6789
微信:WWgeo_support