This command will get a list of ticket IDs from your Textlocal account.
https://api.txtlocal.com/get_tickets/
<?php // Account details $apiKey = 'Your API key'; // Prepare data for POST request $data = array('apikey' => $apiKey); // Send the POST request with cURL $ch = curl_init('https://api.txtlocal.com/get_tickets/'); 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 $response;
<?php // Account details $apiKey = urlencode('Your API key'); // Prepare data for GET request $data = '&apikey=' . $apiKey; // Send the GET request with cURL $ch = curl_init('https://api.txtlocal.com/get_tickets/?' . $data); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); // Process your response here echo $response; ?>
Sorry, we do not have an example for Class in the language you have chosen.
There are no additional parameters for this command | |
Login Parameters (Additional Information) | |
apiKey | You can create these in your Messenger Control Panel (click here) for each application, and limit the usage of them by host IP Address. |
{ "tickets": [ 1234, 4321, ], "status": "success" }
<?xml version="1.0" encoding="UTF-8"?> <response> <tickets> <ticket>1234</ticket> <ticket>4321</ticket> </tickets> <status>success</status> </response>