Right now my script connects to an api and sends an sms, 1 number at a time. I want it to pull from a local sql db then repeat the response for each number in the db.
$data['post'] = array (
'_rnr_se' => $rnrse,
'phoneNumber' => '1234567890',
'text' => 'This is a test SMS!',
'id' => ''
);
// Send the SMS
$response = xcurl::fetch('api.phonegateway.com/', $data);
// Evaluate the response
$value = json_decode($response['data']);
How do I do this?
Copy from the docs