Find out which Avenger Character are you in Avengers Infinity War , type mesg
marvel
your name
and send to 77177 from your Dialog , Hutch number for Airtel numbers type msg
marvel
your name
and send to 77177
These instructions will get you a copy of the project up and running on your local machine or live server for development and testing purposes.
you will need to know the process of creating a connect account , Ideamart account and requesting for a hosting space Check @shafrazrahim tutorial
you can use git clone method or direct download method to download the code
$ git clone https://github.com/djsharox/AvengersInfinityWar-SMS-PHP.git
Error log and sms libraries are initiated in the begenning
$serverurl= "https://api.dialog.lk/sms/send";
$applicationId = "APP_XXXXXX";
$password= "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
- Server URL :- Send service supports only POST HTTP requests. An application wishing to initiate an MT (Mobile Terminated – Delivery of messages from an Ideamart application to a mobile subscriber’s handset) SMS message should use this.
- Application Id :- The developer will recieve application ID in provisioning
- Password :- The developer will recieve password in provisioning
Try catch method is used to capture data , SMSReceiver initialize the received message to a $receiver
$receiver = new SMSReceiver(file_get_contents('php://input'));
Then $receiver calls getMessage() , getAddress() and getRequested() to capture data.
$content = $receiver->getMessage();
$address = $receiver->getAddress();
$requestId = $receiver->getRequestID();
$applicationId = $receiver->getApplicationId();
$sender allocate the broadcasting message to sendMessage()
$sender->sendMessage($third.",your hidden marvel character is ".$mycharacter,$address);
- Uploading the built Php script to hosting space
Watch Part 3 of the tutorial https://youtu.be/_6NrBCjie6o
- Provisioning (registering) your application, obtaining the app id and the password and checking in limited production
Watch Part 4 of the tutorial https://youtu.be/KhMovZXvNZQ
This project is licensed under the MIT License - see the LICENSE.md file for details