डेवलपर्स के लिए

यह आपकी सेवा को एसएमएस-मैन और ऑटोमैटिक नंबर क्रय से जोड़ने के लिए एपीआई प्रलेखन के साथ अनुभाग है।

API v2.0

एपीआई आपके सॉफ़्टवेयर और हमारे सक्रियण के बीच बातचीत का एक प्रोटोकॉल है सर्वर।एपीआई की आवश्यकता है ताकि आप पर एसएमएस संदेश प्राप्त करने की प्रक्रिया को स्वचालित किया जा सके एपीआई के साथ काम करने के लिए, आपको अपनी एपीआई कुंजी का उपयोग करना होगा, आप इसे प्रोफ़ाइल पर जाकर प्राप्त कर सकते हैं पृष्ठ।हमारा सॉफ्टवेयर प्रतियोगी साइटों के साथ पूरी तरह से संगत है

एपीआई प्रोटोकॉल विवरण

सभी अनुरोधों को http://api.sms-man.com/control/ पर जाना चाहिए पोस्ट या अनुरोध प्राप्त करें।सभी अनुरोधों में के रूप में एक एपीआई कुंजी होनी चाहिए टोकन पैरामीटर

संतुलन अनुरोध

http://api.sms-man.com/control/get-balance?token=$token

पैरामीटर

मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी

परिणाम

{"balance":"799.70"}

संभावित त्रुटियां

{"success":false,"error_code":"wrong_token","error_msg": "Wrong token!"}

सीमा प्राप्त करना

http://api.sms-man.com/control/limits?token=$token&country_id=$country_id&application_id=$application_id

पैरामीटर

मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी
country_id Integer no
संख्या देश
application_id Integer no
संख्या सेवा

परिणाम

[{"application_id":"1","country_id":"1","numbers":"32302"},{"application_id":"1","country_id":"2","numbers":"3494"}]

संभावित त्रुटियां

{"success":false,"error_code":"wrong_token","error_msg": {"token": "Wrong token!"}}

फोन नंबर का अनुरोध करें

http://api.sms-man.com/control/get-number?token=$token&country_id=$country_id&application_id=$application_id

पैरामीटर

{random_country}
मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी
country_id Integer no
संख्या देश
application_id Integer no
संख्या सेवा
maxPrice Integer no {ydvalue}
currency String no {apireqcurrency}
ref String no रेफरल आईडी पास करें

परिणाम

{"request_id":1,"country_id":1,"application_id":1,"number":"79002415539"}

संभावित त्रुटियां

{"success":false,"error_code":"wrong_token","error_msg": {"token": "Wrong token!"}}

एसएमएस प्राप्त करें

http://api.sms-man.com/control/get-sms?token=$token&request_id=$request_id

पैरामीटर

मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी
request_id Integer yes अनुरोध आईडी

परिणाम

{"request_id":1,"country_id":1,"application_id":1,"number":"79002415539", "sms_code": "1243"}

संभावित त्रुटियां

{"request_id":1,"country_id":1,"application_id":1,"number":"79002415539", "error_code": "wait_sms", "error_msg": "Still waiting..."}

अनुरोध की स्थिति बदलें

http://api.sms-man.com/control/set-status?token=$token&request_id=$request_id&status=$status

पैरामीटर

मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी
request_id Integer yes अनुरोध आईडी
स्थिति String yes ready / close / reject / used

परिणाम

{"request_id": 1, "success": true}

संभावित त्रुटियां

{"success":false,"error_code":"wrong_token","error_msg": "Wrong token!"}{"success":false,"error_code":"wrong_status","error_msg": "Status $status does not exists"}

{get_current_prices}

http://api.sms-man.com/control/get-prices?token=$token&country_id=$country_id

पैरामीटर

मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी
country_id Integer no
संख्या देश

परिणाम

{"0":{"1":{"cost":"15","count":6455},"2":{"cost":"50","count":124}}, "1":{"3":{"cost":"6","count":1000}}

संभावित त्रुटियां

{"success":false,"error_code":"wrong_token","error_msg": {"token": "Wrong token!"}}

सभी देशों की सूची प्राप्त करें

http://api.sms-man.com/control/countries?token=$token

पैरामीटर

मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी

परिणाम

[{'id':0,'title':"Russia"}, {'id':3,'title':"China"}]

संभावित त्रुटियां

{"success":false,"error_code":"wrong_token","error_msg": "Wrong token!"}

सभी सेवाओं की सूची प्राप्त करें

http://api.sms-man.com/control/applications?token=$token

पैरामीटर

मैदान प्रकार आवश्यक कीमत
token String yes आपकी एपीआई कुंजी

परिणाम

[{'id':'1','name':"Vkontakte", "code":"vk"}, {'id':'2','name':"WeChat", "code": "wb"}, {'id':'3','name':"Telegram", "code":"tg"}]

संभावित त्रुटियां

{"success":false,"error_code":"wrong_token","error_msg": "Wrong token!"}
{{country.title}}
{{country.id}}
logo {{service.title}}
{{service.id}}
×

accept