Open mrnoobnoobies opened 1 year ago
UP. I need PHP programmer here.
there u go.
$curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'http://localhost:5001/send-bulk-message', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 5000, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS =>'{ "session": "Session", "data":[ { "to":"628XXXXXXXX", "text": "text 1" }, { "to":"628XXXXXXXX", "text": "text 2" } ] }', CURLOPT_HTTPHEADER => array( 'Content-Type: application/json' ), ));
$response = curl_exec($curl);
curl_close($curl); echo $response;
Hi, i need some example on how to use POST /send-bulk-message
how to use it using php curl? as i've succeed to be using POST /send-message, i need some example on how to use send bulk message
tq