完整示例
以下为 cURL 完整调用示例,复制后替换 zn_live_xxxxxxxxxxxx 和参数即可运行。
1. 查询余额
Section titled “1. 查询余额”curl -X GET "https://app.zelnum.com/api/v1/balance" \ -H "X-API-Key: zn_live_xxxxxxxxxxxx"2. 提交号码检测
Section titled “2. 提交号码检测”curl -X POST "https://app.zelnum.com/api/v1/detect" \ -H "X-API-Key: zn_live_xxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "product": "YOUR_PRODUCT_SLUG", "country": "CN", "phones": ["+8613800138000", "+8613900139000"] }'3. 上传文件检测
Section titled “3. 上传文件检测”curl -X POST "https://app.zelnum.com/api/v1/detect/file" \ -H "X-API-Key: zn_live_xxxxxxxxxxxx" \ -F "product=YOUR_PRODUCT_SLUG" \ -F "country=CN" \ -F "file=@/path/to/numbers.txt"4. 查询任务进度
Section titled “4. 查询任务进度”curl -X GET "https://app.zelnum.com/api/v1/tasks/xKj9aP3qLm7v" \ -H "X-API-Key: zn_live_xxxxxxxxxxxx"5. 获取下载链接
Section titled “5. 获取下载链接”curl -X GET "https://app.zelnum.com/api/v1/tasks/xKj9aP3qLm7v/result" \ -H "X-API-Key: zn_live_xxxxxxxxxxxx"