API documentation
API request scheme:
https://smspva.eu/api/?action=(method_name)&apikey=(api_key){¶m1..¶mN}
Response in JSON-format
Methods
getuserinfo - getting info about user data
Request:
https://smspva.eu/api/?action=getuserinfo&apikey=(api_key)
Response:
{"status":1,"userdata":{"id":"1","name":"admin","balance":"15.743","karma":499,"group":"3"}} "status":1 - status of request "id":"1" - user id "name":"admin" - username "balance":"15.743" - balance of account "karma":499 - rating of user account
getcount - getting count of available phone numbers
Request:
https://smspva.eu/api/?action=getcount&apikey=(api_key)&serviceid=(ID of service)&countryid=(ID of country){&operatorid=(ID of operator)}
Response:
{"status":1,"data":{"id":"0","name":"ICQ","total":379,"price":"0.10"}} "status":1 - status of request "data" "id":"0" - ID of service "name":"ICQ" - service's name "total":379 - count of available numbers "price":"0.10" - price for SMS
getnumber - getting phone number
Request:
https://smspva.eu/api/?action=getnumber&apikey=(api_key)&serviceid=(ID of service)&countryid=(ID of country){&operatorid=(ID of operator)}
Response:
{"status":1,"deviceId":-1,"karma":498.18,"data":{"id":13857082,"numbercode":"+7","number":"9033666014"}} "status":1 - status of request "karma":498.18 - rating of user account "data" "id":13857082 - ID of order "numbercode":"+7" - country code of number "number":"9033666014" - phone number
getsms - getting SMS
Request:
https://smspva.eu/api/?action=getsms&apikey=(api_key)&numberid=(ID of order){¬close=1} ¬close=1 - param that indicate you need to receive more than 1 SMS and don't close order after receiving first SMS
Response:
{"status":1,"data":{"code":"123456","recipient":"9033666014","sender":"ICQ","text":"You code 123456"},"karma":498.02} "status":1 - SMS received "status":2 - SMS has not been received yet. You need to repeat getsms-request after sometime (10-15 seconds) "status":3 - Order expired "data" "code":"123456" - code from SMS "recipient":"9033666014" - phone number "sender":"ICQ" - sender of SMS "text":"You code 123456" - full text of SMS "karma":498.02 - rating of user account
setnumberdenial - denial phone number
Request:
https://smspva.eu/api/?action=setnumberdenial&apikey=(api_key)&numberid=(ID of order)
Response:
{"status":1,"karma":498.02} "status":1 - status of request "karma":498.02 - rating of user account
setnumberban - ban phone number
Request:
https://smspva.eu/api/?action=setnumberban&apikey=(api_key)&numberid=(ID of order)
Response:
{"status":1,"karma":498.02} "status":1 - status of request "karma":498.02 - rating of user account
setnumberclose - close order
Request:
https://smspva.eu/api/?action=setnumberclose&apikey=(api_key)&numberid=(ID of order)
Response:
{"status":1,"karma":498.02} "status":1 - status of request "karma":498.02 - rating of user account
setsearchsms - search next SMS
Request:
https://smspva.eu/api/?action=setsearchsms&apikey=(api_key)&numberid=(ID of order)
Response:
{"status":1,"karma":498.02} "status":1 - status of request (phone number is ready to receive next SMS) "karma":498.02 - rating of user account
List of countries, operators and services
List of countries, operators ►
Country | Operator | ID | Description |
---|
List of services ►
Service name | ID | Description |
---|