$client = new SoapClient ('https://smscentre.com/sys/soap.php?wsdl'); $ret = $client->get_balance(array('login'=>'alex', 'psw'=>'123'));
The following parameters are passed to the server:
Option
The value
login
Customer Login.
psw
Client Password (you can add or change it on this page).
apikey
A special API key used for simplified authorization instead of the "login+password" pair (you can create it on this page).
The response returns the current balance balance and the error number error.
The error number can take the following values:
The value
Description
0
There are no errors.
1
Error in parameters.
2
Invalid username or password. Also occurs when trying to send a message from an IP address that is not included in the list of allowed by the Client (if such a list was previously configured by the Client).
4
The IP address is temporarily blocked.
9
Attempt to send more than ten balance requests within a minute.
This website uses cookies and transmits data to web analytics services to improve functionality. By using the website, you agree to this. To close