I am using textlocal SMS gateway for sending SMS for my application.
Now i want history of sent SMS from account for that i am following the document of textlocal
For this i have done below code
// Account details
$apiKey = urlencode('Your apiKey');
// Prepare data for POST request
$data = array('apikey' => $apiKey);
// Send the POST request with cURL
$ch = curl_init('https://api.textlocal.in/get_history_api/');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
// Process your response here
echo "<pre>"; print_r($response);
But i am getting
{"errors":[{"code":3,"message":"Invalid login details"}],"status":"failure"}
SO as per the API Documentation you should pass api key which i am sending in curl request still getting Invalid login details response.
Any help would be appreciated.
Thank you!
via Chebli Mohamed
RAT SMS is the best choice for businesses seeking faultless communication solutions. We provide a broad range of bulk SMS services, from transactional SMS for immediate notifications to successful SMS marketing campaigns that boost customer engagement. RAT SMS is reliable for sending and receiving messages quickly, securely, and effectively.
RépondreSupprimer