Envois par liens
Post /statistics/links
Paramètres :
Nom | Description | Type | Obligatoire |
---|---|---|---|
dateBegin | Date de début au format YYYY-MM-ddThh:mm:ss | Int | Non |
dateEnd | Date de fin au format YYYY-MM-ddThh:mm:ss | Int | Non |
froms | Email(s) de l'expéditeur | Array | Non |
apiKeys | Tableau de clés Api | Array | Non |
tags | Tableau de tags | Array | Non |
Réponse :
Nom | Description | Type | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
link |
Tableau contenant les informations de chaque email en fonction du lien
|
Array |
Langage de programmation :
Exemple de requête :
{ "dateBegin": "2019-08-01T22:32:49", "dateEnd": "2019-08-06T22:32:49" }
Exemple de réponse :
{ "wwww.tipimail.com": { "click": 2, "clicker": 1 }, "www.sarbacane.com": { "click": 1, "clicker": 1 }, "wwww.google.com": { "click": 3, "clicker": 3 } }
Exemple de code :
curl -X POST -d '{"dateBegin":"2019-08-01T22:32:49","dateEnd":"2019-08-06T22:32:49"}' -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_API_USERNAME" -H "X-Tipimail-ApiKey:YOUR_API_KEY" https://api.tipimail.com/v1/statistics/links
require 'vendor/autoload.php'; $tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY'); try { $dateBegin = null; $dateEnd = null; $froms = null; $apiKeys = null; $tags = null; $result = $tipimail->getStatisticsService()->getSendsByLink($dateBegin, $dateEnd, $froms, $tags, $apiKeys); var_dump($result); } catch(Tipimail\Exceptions\TipimailException $e) { echo 'Exception received :', $e->getMessage(), "\n"; }
... public class Example { public static void main(String[] args) { Tipimail tipimail = new Tipimail("YOUR_SMTP_USERNAME", "YOUR_API_KEY"); try { nteger dateBegin = null; Integer dateEnd = null; ArrayList<String> froms = null; ArrayList<String> tags = null; ArrayList<String> apiKeys = null; HashMap<String, StatisticsLink> sendsByLink; sendsByLink = tipimail.getStatisticsService().getSendsByLink(dateBegin, dateEnd, froms, tags, apiKeys); } catch (TipimailException e) { } } }