Analysis Report
This method obtains an analysis report using a report ID.
info
If you do not specify a date range, only the reports from the last 24 hours will be generated.
This is a GET method.
REST WADL
https://atmp-pub-api-www3.actito.com/apinmpreporting/application.wadl
REST URL
https://atmp-pub-api-www3.actito.com/apinmpreporting/analysis/{id}/report?beginDate={beginDate}&endDate={endDate}
| Input parameters
Required parameters | Description | Output parameters | Description |
| ----------------------------------------------------------------------------- | ----------- | ----------------- | ----------- |
| token | (missing or bad snippet) | return | This generates an analysis report. |
| id | The campaign ID. | | |
| beginDate | (missing or bad snippet) | | |
| endDate | (missing or bad snippet) | | |
Error Descriptions
Status Code | Error Code | Error messages | Example Error Output |
---|---|---|---|
403 | Access denied. You must fill in the managerKey parameter to authentificate on this API You must fill in the password paramter to authentificate on this API. Please enter a valid token to validate your connection. Your session has expired due to timeout | <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ExceptionEntity><errorMessage>Access denied.</errorMessage></ExceptionEntity> | |
404 | API_209 | No result found | <?xml version="1.0" encoding="UTF-8" standalone="yes"?><ExceptionEntity><errorCode>API_209</errorCode><errorMessage>No result found</errorMessage></ExceptionEntity> |
REST Example
Input
XML Input
URL
https://atmp-pub-api-www3.actito.com/apinmpreporting/analysis/{id}/report?beginDate=2012-04-11T20%3A22%3A06%2B02%3A00&endDate=2013-04-12T20%3A22%3A06%2B02%3A00
Header
{token}
content-type application/xml
accept application/xml
JSON Input
URL
https://atmp-pub-api-www3.actito.com/apinmpreporting/analysis/{id}/report?beginDate=2012-04-11T20%3A22%3A06%2B02%3A00&endDate=2013-04-12T20%3A22%3A06%2B02%3A00
Header
{token}
content-type application/json
accept application/json
Output
XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<report>
<analysis>
<nmMessageId>45693</nmMessageId>
<name>nmp_content_test_msg</name>
<sentDate>2012-08-13T12:58:33+01:00</sentDate>
<nmSent>1</nmSent>
<nmHardBounce>0</nmHardBounce>
<nmSoftBounce>1</nmSoftBounce>
<nmOpen>0</nmOpen>
<nmClick>1</nmClick>
</analysis>
<analysis>
<nmMessageId>45696</nmMessageId>
<name>nmp_content_pre_demo</name>
<sentDate>2012-08-13T10:45:57+01:00</sentDate>
<nmSent>1</nmSent>
<nmHardBounce>0</nmHardBounce>
<nmSoftBounce>1</nmSoftBounce>
<nmOpen>0</nmOpen>
<nmClick>0</nmClick>
</analysis>
</report>
JSON Output
{
"report":
[
{
"nmMessageId": "45693",
"name": "nmp_content_test_msg",
"sentDate": "2012-08-13T12:58:33+01:00",
"nmSent": "1",
"nmHardBounce": "0",
"nmSoftBounce": "1",
"nmOpen": "0",
"nmClick": "1"
},
{
"nmMessageId": "45696",
"name": "nmp_content_pre_demo",
"sentDate": "2012-08-13T10:45:57+01:00",
"nmSent": "1",
"nmHardBounce": "0",
"nmSoftBounce": "1",
"nmOpen": "0",
"nmClick": "0"
}
]
}