Get sends by links
Post /statistics/links
Parameters:
Name | Description | Type | Mandatory |
---|---|---|---|
dateBegin | Date begin on YYYY-MM-ddThh:mm:ss format | Int | No |
dateEnd | Date end on YYYY-MM-ddThh:mm:ss format | Int | No |
froms | Array of Senders email | Array | No |
apiKeys | Array of api keys | Array | No |
tags | Array of tags | Array | No |
Response:
Name | Description | Type | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
link |
An array with information about each email on link
|
Array |
Programming language:
Request exemple:
{ "dateBegin": "2019-08-01T22:32:49", "dateEnd": "2019-08-06T22:32:49" }
Response exemple:
{ "wwww.tipimail.com": { "click": 2, "clicker": 1 }, "www.sarbacane.com": { "click": 1, "clicker": 1 }, "wwww.google.com": { "click": 3, "clicker": 3 } }
Code example:
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) { } } }