/getlist
This function allows to get specific list informations.
- Endpoint: https://app.fideljet.com/rest/getlist
- Type: Post
apikey | API KEY | You can get it from your profil https://app.Fideljet.com/profil then apikey section |
list_id | List Id | List Id |
Here is a PHP exemple:
<?php $curl = curl_init(); $apikey = "YOUR_API_KEY"; $email = "List_Id"; // List Id curl_setopt_array($curl, array( CURLOPT_URL => "https://app.fideljet.com/rest/getlist", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => "{ \"apikey\":\"$apikey\",\"list_id\":\"$list_id\"}", CURLOPT_HTTPHEADER => array( "accept: application/json", "content-type: application/json" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ?>
Résultat:
{ "message":"Success", "success":true, "data":{ "name":"Default", "description":"default list", "total":"67", "emailnotverified":66, "emailvalid":"1", "emailbounced":"0" } }