https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=getBalance
$api_key - API key
Response example: ACCESS_BALANCE:$balance ($balance - balance)
Possible mistakes: BAD_KEY - invalid API key
https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=getNumber&service=$service&country=$country
$api_key - API key
$service - service number for order
$country - country identifier
Service answers:
NO_NUMBERS - no numbers
NO_BALANCE - balance ended
ACCESS_NUMBER:$id:$number - number issued ($id - operation id, $number - phone number)
Possible mistakes:
BAD_ACTION - incorrect action
BAD_SERVICE - incorrect service name
BAD_KEY - Invalid API key
https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=setStatus&status=$status&id=$id
$api_key - Api key
$id - activation id
$status - activation status:
-1 - cancel activation
8 - report the number used and cancel the activation
Service Answers:
ACCESS_READY - number readiness confirmed
ACCESS_CANCEL - activation canceled
Possible mistakes:
ERROR_SQL - SQL-server error
NO_ACTIVATION - activation id does not exist
BAD_SERVICE - incorrect service name
BAD_STATUS - incorrect status
BAD_KEY - Invalid API key
BAD_ACTION - incorrect action
https://receivesms.store/stubs/handler_api.php?api_key=$api_key&action=getStatus&id=$id
$api_key - Api key
$id - id activation
Service Answers:
STATUS_WAIT_CODE - waiting for SMS
STATUS_CANCEL - activation canceled
STATUS_OK:$code - code receivedн (where $ code is an activation code)
Possible mistakes: NO_ACTIVATION - activation id does not exist
BAD_KEY - Invalid API key
BAD_ACTION - incorrect action