Description
Get the full day log for a specified date.
Params
Name | Type | Description |
---|---|---|
apiKey | string | API key previously generated. |
date | string | Date in the following format: YYYY-MM-DD. |
offset | integer | Optional parameter to specify offset. If not specified, it's 0. |
count | integer | Optional parameter to specify the number of records. If not specified, it's 100. The maximum allowed value is 10000. Numbers bigger than 10000 are automatically reduced to 10000. |
Returned data
Type: array
Description: Return data as an array containing the full info for all messages. Check Appendix 2 for more info about the returned data.
Json sample code
<?php $curl = curl_init('https://your_address/ccm/admin/api/version/2/&type=json'); $postData = array( 'function' => 'getDayLog', 'apiKey' => 'apiKey', 'date' => '2010-02-15', ); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($postData)); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $json = curl_exec($curl); if ($json === false) { die('Request failed with error: '. curl_error($curl)); } $result = json_decode($json); if ($result->status == 0) { die('Bad status returned. Error: '. $result->error); } var_dump($result->data);
Result of API call
Array ( [0] => stdClass Object ( [type] => d [timeLogged] => 1329152691 [timeQueued] => 1329152674 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 Ok: queued as 69BE09585C [dsnMta] => st1.ip-zone.com (93.159.209.200) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 93.159.209.200 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,DSN,ETRN,STARTTLS [dlvSize] => 1939 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 54 [mailingListId] => 16 ) [1] => stdClass Object ( [type] => b [timeLogged] => 1329152679 [timeQueued] => 1329152674 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => failed [dsnStatus] => 5.0.0 (undefined status) [dsnDiag] => smtp;550 Verification failed for No existe ese usuario en esta direcci.n" Sender verify failed [dsnMta] => mail.com (84.20.10.73) [bounceCat] => invalid-sender [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 84.20.10.73 [dlvEsmtpAvailable] => PIPELINING,SIZE,AUTH,STARTTLS,AUTH:PLAIN,AUTH:LOGIN [dlvSize] => [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 52 [mailingListId] => 16 ) [2] => stdClass Object ( [type] => d [timeLogged] => 1329152675 [timeQueued] => 1329152674 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 OK 1329152726 n56si9534075eeh.147 [dsnMta] => gmail-smtp-in.l.google.com (74.125.79.27) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 74.125.79.27 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,STARTTLS [dlvSize] => 1942 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 55 [mailingListId] => 16 ) [3] => stdClass Object ( [type] => d [timeLogged] => 1329152675 [timeQueued] => 1329152674 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 <4f3942a15d2e7@joseargudo00_ip-zone_com-6> Queued mail for delivery [dsnMta] => mx2.demo.com (65.54.188.126) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 65.54.188.126 [dlvEsmtpAvailable] => PIPELINING,CHUNKING,8BITMIME,BINARYMIME,SIZE,AUTH,AUTH:LOGIN [dlvSize] => 1948 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 53 [mailingListId] => 16 ) [4] => stdClass Object ( [type] => d [timeLogged] => 1329145516 [timeQueued] => 1329145507 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 Ok: queued as 89266958A1 [dsnMta] => st1.ip-zone.com (93.159.209.200) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 93.159.209.200 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,DSN,ETRN,STARTTLS [dlvSize] => 1939 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 48 [mailingListId] => 15 ) [5] => stdClass Object ( [type] => d [timeLogged] => 1329145511 [timeQueued] => 1329145507 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 OK 1329145562 f46si9321970eec.132 [dsnMta] => gmail-smtp-in.l.google.com (74.125.79.27) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 74.125.79.27 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,STARTTLS [dlvSize] => 1942 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 49 [mailingListId] => 15 ) [6] => stdClass Object ( [type] => b [timeLogged] => 1329145510 [timeQueued] => 1329145507 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => failed [dsnStatus] => 5.0.0 (undefined status) [dsnDiag] => smtp;550 Verification failed for No existe ese usuario en esta direcci.n" Sender verify failed [dsnMta] => mail.com (84.20.10.73) [bounceCat] => invalid-sender [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 84.20.10.73 [dlvEsmtpAvailable] => PIPELINING,SIZE,AUTH,STARTTLS,AUTH:PLAIN,AUTH:LOGIN [dlvSize] => [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 46 [mailingListId] => 15 ) [7] => stdClass Object ( [type] => b [timeLogged] => 1329145509 [timeQueued] => 1329145507 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => failed [dsnStatus] => 5.1.2 (bad destination system: no such domain) [dsnDiag] => [dsnMta] => [bounceCat] => bad-domain [srcType] => api [srcMta] => [dlvType] => [dlvSourceIp] => [dlvDestinationIp] => [dlvEsmtpAvailable] => [dlvSize] => [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 50 [mailingListId] => 15 ) [8] => stdClass Object ( [type] => d [timeLogged] => 1329145508 [timeQueued] => 1329145507 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 <4f3926a33d933@joseargudo00_ip-zone_com-6> Queued mail for delivery [dsnMta] => mx3.demo.com (65.55.37.120) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 65.55.37.120 [dlvEsmtpAvailable] => PIPELINING,CHUNKING,8BITMIME,BINARYMIME,SIZE,AUTH,AUTH:LOGIN [dlvSize] => 1948 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 47 [mailingListId] => 15 ) [9] => stdClass Object ( [type] => d [timeLogged] => 1329127948 [timeQueued] => 1329127943 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 Ok: queued as 59AA095951 [dsnMta] => st1.ip-zone.com (93.159.209.200) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 93.159.209.200 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,DSN,ETRN,STARTTLS [dlvSize] => 1939 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 40 [mailingListId] => 13 ) [10] => stdClass Object ( [type] => b [timeLogged] => 1329127946 [timeQueued] => 1329127943 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => failed [dsnStatus] => 5.0.0 (undefined status) [dsnDiag] => smtp;550 Verification failed for No existe ese usuario en esta direcci.n" Sender verify failed [dsnMta] => mail.com (84.20.10.73) [bounceCat] => invalid-sender [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 84.20.10.73 [dlvEsmtpAvailable] => PIPELINING,SIZE,AUTH,STARTTLS,AUTH:PLAIN,AUTH:LOGIN [dlvSize] => [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 38 [mailingListId] => 13 ) [11] => stdClass Object ( [type] => d [timeLogged] => 1329127946 [timeQueued] => 1329127943 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 OK 1329127996 m49si8791523eef.208 [dsnMta] => gmail-smtp-in.l.google.com (74.125.79.27) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 74.125.79.27 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,STARTTLS [dlvSize] => 1942 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 41 [mailingListId] => 13 ) [12] => stdClass Object ( [type] => d [timeLogged] => 1329127944 [timeQueued] => 1329127943 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 <4f38e206effa9@joseargudo00_ip-zone_com-6> Queued mail for delivery [dsnMta] => mx3.demo.com (65.55.92.152) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 65.55.92.152 [dlvEsmtpAvailable] => PIPELINING,CHUNKING,8BITMIME,BINARYMIME,SIZE,AUTH,AUTH:LOGIN [dlvSize] => 1948 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 39 [mailingListId] => 13 ) [13] => stdClass Object ( [type] => d [timeLogged] => 1329126693 [timeQueued] => 1329126681 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 Ok: queued as 0802F958B6 [dsnMta] => st1.ip-zone.com (93.159.209.200) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 93.159.209.200 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,DSN,ETRN,STARTTLS [dlvSize] => 1994 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 35 [mailingListId] => 12 ) [14] => stdClass Object ( [type] => b [timeLogged] => 1329126687 [timeQueued] => 1329126682 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => failed [dsnStatus] => 5.0.0 (undefined status) [dsnDiag] => smtp;550 Verification failed for No existe ese usuario en esta direcci.n" Sender verify failed [dsnMta] => mail.com (84.20.10.73) [bounceCat] => invalid-sender [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 84.20.10.73 [dlvEsmtpAvailable] => PIPELINING,SIZE,AUTH,STARTTLS,AUTH:PLAIN,AUTH:LOGIN [dlvSize] => [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 34 [mailingListId] => 12 ) [15] => stdClass Object ( [type] => d [timeLogged] => 1329126682 [timeQueued] => 1329126681 [timeImpinted] => 0 [orig] => info@demo.com [rcpt] => demo@gmail.com [orcpt] => [dsnAction] => relayed [dsnStatus] => 2.0.0 (success) [dsnDiag] => smtp;250 2.0.0 OK 1329126733 e49si8802500eea.27 [dsnMta] => gmail-smtp-in.l.google.com (74.125.79.27) [bounceCat] => [srcType] => api [srcMta] => [dlvType] => smtp [dlvSourceIp] => 93.159.209.111 [dlvDestinationIp] => 74.125.79.27 [dlvEsmtpAvailable] => ENHANCEDSTATUSCODES,PIPELINING,8BITMIME,SIZE,STARTTLS [dlvSize] => 1997 [vmta] => joseargudo00_ip-zone_com-6 [jobId] => [envId] => [sentId] => 36 [mailingListId] => 12 ) )