set_status
set_status($status=6); - report the activation status.
the input Function accepts parameters:
$status – activation statuses:
-1 - cancel activation
1 - notify when 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 successfully and completes, if it was "preparation" - deletes and marks error, if the status was "waiting for a repeat" - switches activation to waiting for SMS)
8 - notify that the number is used and cancel activation
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 smsactivate->answervariable.
The smsactivate->answer variable can be:
ACCESS_READY - number readiness confirmed
ACCESS_RETRY_GET - waiting for a new SMS
ACCESS_ACTIVATION - service successfully activated
ACCESS_CANCEL - activation 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