SIMUB
Integrate SIMUB SMS and temporary mail activations with documented authentication, lifecycle, error handling and safe server-side examples.
Protected requests use the API key associated with your verified SIMUB account. Send it only over HTTPS and keep it in a server-side secret store or environment variable; never embed it in client code, a public repository or a screenshot. The SMSHub-compatible handler receives action as a parameter, while SIMUB SMS routes put it in the path. Choose one interface and parse its documented response format.
Call getBalance for available funds, getServices or getServicesList for current service codes, and getCountries for supported country codes. Choose getPrices, getPricesV2 or getPricesV3 for the response shape your integration expects. Catalogs, counts and prices are provider snapshots: cache them briefly, display the returned price when relevant and revalidate before purchase. Never invent a code from a visible label.
A purchase and a status check are different operations. Persist the activation identifier immediately so an application timeout does not lose a reserved number.
SMSHub-compatible actions can return text tokens, while newer routes may return JSON. Correct or rotate a BAD_KEY credential instead of retrying. BAD_SERVICE means an action or service is unsupported. NO_BALANCE requires funding; NO_NUMBERS means no matching offer is currently available; BAD_STATUS marks an invalid transition. After a timeout, reset or server error on getNumber, reconcile through the stored activation or status before purchasing again. A blind retry can create a duplicate reservation.
ई-मेल सक्रियण अलग रूट और JSON प्रतिक्रियाएँ उपयोग करता है। सेवाओं, डोमेन, कीमत और स्टॉक के लिए getPriceRests, getPrices या getRests कॉल करें। getActivation से मिला mailId सुरक्षित रखें। स्थिति के लिए getStatus और प्राप्त कोड के लिए getCode उपयोग करें। setStatus और requestRefund वर्तमान स्थिति तथा प्रकाशित नीति के अनुसार होने चाहिए। अस्थायी मेलबॉक्स स्थायी इनबॉक्स या सुरक्षित रिकवरी पता नहीं है।
नीचे दिए मान जानबूझकर अमान्य प्लेसहोल्डर हैं। इन्हें केवल सुरक्षित सर्वर वातावरण में बदलें। curl उदाहरण पैरामीटर अलग-अलग एन्कोड करते हैं और URL को हाथ से नहीं जोड़ते।
सीमित टाइमआउट रखें, स्थिति पोलिंग में सीमित घातीय बैकऑफ उपयोग करें और अंतिम स्थिति पर रुकें। लॉग से api_key, फोन नंबर, पते और प्राप्त कोड हटाएँ। प्रतिक्रियाएँ सत्यापित करें और एक साथ खरीद सीमित रखें। स्टॉक, नेटवर्क और फ़िल्टर बदलते हैं; उपलब्धता या कोड डिलीवरी की गारंटी नहीं है।
सर्वर-साइड सीक्रेट मैनेजर या सुरक्षित पर्यावरण चर में रखें। पहुँच सीमित करें और इसे लॉग या क्लाइंट कोड में कभी न डालें।
मध्यम अंतराल और सीमित बैकऑफ के साथ पोल करें तथा अंतिम प्रतिक्रिया पर रुकें।
नहीं। यह केवल नंबर आवंटन की पुष्टि करता है; डिलीवरी बाहरी नेटवर्क और प्लेटफ़ॉर्म नियमों पर निर्भर है।
दोहरी फीस से बचने के लिए पहले सुरक्षित ID, इतिहास या स्थिति से जाँचें कि सक्रियण पहले से बना तो नहीं है।