Get an email

Get /blacklists/{type}/{email}

URL parameters:

Name Description Type Mandatory
type

Type of blacklist.

Values available:

  • bounces
  • unsubscribes
  • complaints
String No
email Email address you want to get Int Yes

Response:

Name Description Type
email Email address String
date Date of add Int
blacklist Type of blacklist where the email address is. If you defined a type on your query, only this type will be returned String
Programming language:

Response exemple:

							{
								"email": "email@example.com",
								"date": 1438765958,
								"blacklist": "bounces"
							}
							

Code example:

								curl -X GET -H "Content-Type: application/json" -H "X-Tipimail-ApiUser:YOUR_SMTP_USERNAME" -H "X-Tipimail-ApiKey:YOUR_SMTP_KEY" https://api.tipimail.com/v1/blacklists/bounces/bounces@domain.fr
							
require 'vendor/autoload.php';

$tipimail = new Tipimail\Tipimail('YOUR_SMTP_USERNAME', 'YOUR_API_KEY');

try {
	
	$result = $tipimail->getBlacklistsService()->get('mail@example.com');
	var_dump($result);
	
	$result = $tipimail->getBlacklistsService()->getBounce('mail@example.com');
	var_dump($result);
	
	$result = $tipimail->getBlacklistsService()->getComplaint('mail@example.com');
	var_dump($result);
	
	$result = $tipimail->getBlacklistsService()->getUnsubscriber('mail@example.com');
	var_dump($result);
		
}
catch(Tipimail\Exceptions\TipimailException $e) {
	echo 'Exception received :', $e->getMessage(), "\n";
	
}