I am using Twilio PHP Library, and i want to send SMS messages to a big list of people using Twilio PHP REST API. I have a text file, that contains the list of unique phone numbers (approx 1000 members).
Currently my plan was to create a cron job, which parses the text file, and makes a REST API call for each of the phone numbers in the file.
<?php require_once 'vendor/autoload.php'; use Twilio\Rest\Client; $sid = "ACXXXXXXXXXXXXXXXXXXXXXXXX"; $token = "XXXXXXXXXXXXXXXXXXXXXXXXXX"; $client = new Client($sid, $token); $sms_sent = $client->messages->create( '+1xxxxxxxxxx', array( 'from' => '+1xxxxxxxxxx', 'body' => "XXXXXX XXXXXX", 'statusCallback' => "http://myapplication_callback_url" ) );
But i wanted to know, whether Twilio can do the job for me (like i will upload the text file to Twilio, and Twilio will process the file and send SMS to each number in it).
Is there any option like this with Twilio? I have read about the BULK SMS option here, but that seems like it sends out a static message to all the users. I need to send unique message to each user. How is this possible with Twilio? Please let me know.
EDIT: 27-09-2017: I have heard about Twilio COPILOT, but not sure how to use that service.