POST
/api/v1/resolve
查询网名对应的实名信息和位置坐标
curl -X POST https://your-domain/api/v1/resolve \
-H "Authorization: HMAC-SHA256 Credential=YOUR_API_KEY/Timestamp, Signature=YOUR_HMAC_SECRET" \
-H "Content-Type: application/json" \
-d '{"name": "jack@me", "code": "123456"}'
import requests
resp = requests.post(
"https://your-domain/api/v1/resolve",
headers={"Authorization": "HMAC-SHA256 Credential=YOUR_API_KEY/..., Signature=YOUR_HMAC_SECRET"},
json={"name": "jack@me", "code": "123456"}
)
print(resp.json())
const resp = await fetch("https://your-domain/api/v1/resolve", {
method: "POST",
headers: {
"Authorization": "HMAC-SHA256 Credential=YOUR_API_KEY/..., Signature=YOUR_HMAC_SECRET",
"Content-Type": "application/json"
},
body: JSON.stringify({ name: "jack@me", code: "123456" })
});
const data = await resp.json();
GET
/api/v1/suffix
获取所有可用的网名后缀列表
curl -X GET https://your-domain/api/v1/suffix \
-H "Authorization: HMAC-SHA256 Credential=YOUR_API_KEY/Timestamp, Signature=YOUR_HMAC_SECRET"
import requests
resp = requests.get(
"https://your-domain/api/v1/suffix",
headers={"Authorization": "HMAC-SHA256 Credential=YOUR_API_KEY/..., Signature=YOUR_HMAC_SECRET"}
)
print(resp.json())
const resp = await fetch("https://your-domain/api/v1/suffix", {
method: "GET",
headers: {
"Authorization": "HMAC-SHA256 Credential=YOUR_API_KEY/..., Signature=YOUR_HMAC_SECRET"
}
});
const data = await resp.json();
POST
/api/v1/gps
解析网名对应的 GPS 坐标
curl -X POST https://your-domain/api/v1/gps \
-H "Authorization: HMAC-SHA256 Credential=YOUR_API_KEY/Timestamp, Signature=YOUR_HMAC_SECRET" \
-H "Content-Type: application/json" \
-d '{"mode": "coordinates", "name": "jack@me"}'
import requests
resp = requests.post(
"https://your-domain/api/v1/gps",
headers={"Authorization": "HMAC-SHA256 Credential=YOUR_API_KEY/..., Signature=YOUR_HMAC_SECRET"},
json={"mode": "coordinates", "name": "jack@me"}
)
print(resp.json())
const resp = await fetch("https://your-domain/api/v1/gps", {
method: "POST",
headers: {
"Authorization": "HMAC-SHA256 Credential=YOUR_API_KEY/..., Signature=YOUR_HMAC_SECRET",
"Content-Type": "application/json"
},
body: JSON.stringify({ mode: "coordinates", name: "jack@me" })
});
const data = await resp.json();
POST
/api/v1/reseller/quota
查询经销商账户的配额信息
curl -X POST https://your-domain/api/v1/reseller/quota \
-H "X-API-Key: YOUR_API_KEY" \
-H "X-API-Secret: YOUR_HMAC_SECRET" \
-H "Content-Type: application/json"
import requests
resp = requests.post(
"https://your-domain/api/v1/reseller/quota",
headers={
"X-API-Key": "YOUR_API_KEY",
"X-API-Secret": "YOUR_HMAC_SECRET"
}
)
print(resp.json())
const resp = await fetch("https://your-domain/api/v1/reseller/quota", {
method: "POST",
headers: {
"X-API-Key": "YOUR_API_KEY",
"X-API-Secret": "YOUR_HMAC_SECRET",
"Content-Type": "application/json"
}
});
const data = await resp.json();