Перейти к содержимому

Get message content check status

Return status and errors from message content check task

Request data format

Request URL parameters:

Element/attributeTypeNotes
ApiKeystringYour API key, required for authentication. Required.
IdstringMessage content check Id.

Example:

https://api.esv2.com/v2/Api/CheckMessageContent?apiKey=YOUR_API_KEY_HERE&id=ID

Response

Response Data element:

Element/attributeTypeNotes
StatusEnumStatus of task processing, possible values: Queued, InProgress, SuccessNoProblems, SuccessProblemsFound, CheckFailed
ErrorsstringErrors from analize

Examples

Request:

GET https://api.esv2.com/v2/Api/CheckMessageContent?apiKey=test_api_key&id=e4355465-adc4-4d19-9c4c-550d209756a0 HTTP/1.1 
Accept-Encoding: gzip,deflate 
Content-Type: application/xml 
User-Agent: Jakarta Commons-HttpClient/3.1 
Host: api.esv2.com 
Content-Length: 278 

Response:

HTTP/1.1 200 OK 
Cache-Control: private 
Content-Type: text/xml; charset=utf-8 
Content-Encoding: gzip 
Vary: Accept-Encoding 
Server: Microsoft-IIS/7.5 
Set-Cookie: ASP.NET_SessionId=cu23cqm125fq1qih1kg4ux45; path=/; HttpOnly 
X-AspNetMvc-Version: 1.0 
X-AspNet-Version: 2.0.50727 
X-Powered-By: ASP.NET 
Date: Mon, 22 Jan 2018 12:56:22 GMT 
Content-Length: 349

<ApiGetResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <Status>Queued</Status>
</ApiGetResponse>

If some link is found on blacklist, response will contain problem element with information about it:

HTTP/1.1 200 OK 
Cache-Control: private 
Content-Type: text/xml; charset=utf-8 
Content-Encoding: gzip 
Vary: Accept-Encoding 
Server: Microsoft-IIS/7.5 
Set-Cookie: ASP.NET_SessionId=cu23cqm125fq1qih1kg4ux45; path=/; HttpOnly 
X-AspNetMvc-Version: 1.0 
X-AspNet-Version: 2.0.50727 
X-Powered-By: ASP.NET 
Date: Mon, 22 Jan 2018 12:56:22 GMT 
Content-Length: 349

<ApiResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <Status>SuccessProblemsFound</Status>
   <Problems>
       <Domains>
         <Domain> 
            <Name>deallx.de</Name>
            <Blacklists>
                <Blacklist>
                     <Name>.multi.uribl.com</Name>
                     <Problems>
                         <Problem>"Redlisted, see http://lookup.uribl.com/?domain=deallx.de"</Problem>
                     </Problems>
                </Blacklist>
                <Blacklist>
                    <Name>.multi.surbl.org"</Name>
                    <Problems>
                        <Problem>"Blocked, deallx.de on lists [abuse], See: http://www.surbl.org/lists.html"</Problem>
                    </Problems>
                </Blacklist>
             </Blacklists>
         </Domain>
       </Domains>
   </Problems>
</ApiResponse>