أمثلة كاملة
انسخ وشغل أمثلة cURL هذه — واستبدل YOUR_KEY_HERE والمعاملات.
جلب الرصيد
Section titled “جلب الرصيد”curl -X GET "https://api.zelnum.com/api/v1/balance" \ -H "X-API-Key: YOUR_KEY_HERE"إرسال مهمة فحص
Section titled “إرسال مهمة فحص”curl -X POST "https://api.zelnum.com/api/v1/detect" \ -H "X-API-Key: YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{ "product": "YOUR_PRODUCT_SLUG", "country": "CN", "phones": ["+8613800138000", "+8613900139000"] }'رفع ملف
Section titled “رفع ملف”curl -X POST "https://api.zelnum.com/api/v1/detect/file" \ -H "X-API-Key: YOUR_KEY_HERE" \ -F "product=YOUR_PRODUCT_SLUG" \ -F "country=CN" \ -F "file=@/path/to/numbers.txt"الاستعلام عن حالة المهمة
Section titled “الاستعلام عن حالة المهمة”curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v" \ -H "X-API-Key: YOUR_KEY_HERE"جلب رابط التنزيل
Section titled “جلب رابط التنزيل”curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v/result" \ -H "X-API-Key: YOUR_KEY_HERE"