set_status
set_status($status=6); - report the activation status.
the input Function accepts parameters:
$status – activation statuses:
-1 - cancel activation
1 - notify the number is ready (SMS sent to the number)
3 - request another code (free of charge)
6 - complete activation(if the status was "code received" - marks successful and completes
8 - notify that the number is used and cancel activation [This status is canceled, valid unless you received an SMS to the number]
After testing, the function returns the result of its work to the script :
true – the number is readyfalse – the number is not ready
You can view the service response in the simnet->answervariable.
The simnet->answer variable can be:
ACCESS_READY - number readiness confirmed
ACCESS_RETRY_GET - waiting for a new SMS
ACCESS_ACTIVATION - service successfully activated
ACCESS_CANCEL - the activation is canceled.
Possible error:
NO_ACTIVATION - activation id does not exist
BAD_SERVICE - invalid service name
BAD_STATUS - invalid status
BAD_KEY - invalid API key
BAD_ACTION - invalid action
ERROR_SQL - SQL server error