How to send sms using way2sms from localhost

4.2k Views Asked by At

I want to send SMS using way2sms api from localhost. How can I send SMS from localhost using way2sms api?

1

There are 1 best solutions below

7
Richard87 On

Basically 2 steps:

  1. First log in
  2. Send the message

To do this, you have to use Curl, or you can just keep it simple and not doing it over again and use this api: https://github.com/kingster/Way2SMS-API

<?php
    include('way2sms-api.php');
    sendWay2SMS ( '9000012345' , 'password' , '987654321' , 'Hello World');   
    sendWay2SMS ( '9000012345' , 'password' , '987654321,9876501234' , 'Hello World');   
?>