In order to use the SMS Gateway API you will need to authenticate. We use basic authentication. You will be required to send the basic authentication headers with every request that you make to the API server
Sample HTTP Basic Authentication header
You will need to include a email and password with every request you make to the SMS Gateway API.
|YES||Your username for the site|
|password||YES||Your password for the site|
Authentication using the PHP Library
Alternatively if you are using our PHP Library you can easily authenticate with a single line of code. Authentication with the library is done upon creating the SmsGateway object.
- include "smsGateway.php";
- $smsGateway = new SmsGateway('firstname.lastname@example.org', 'password');
- //Requests to api server after authentication
|Status Code:||401 Unauthorized|