\Knack\ZeroBounce\APIZeroBounceAPI

Class ZeroBounceAPI

Summary

Methods
Properties
Constants
__construct()
getCredits()
validate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
_apiCall()
$_client
$_key
$_baseURL
N/A

Properties

$_client

$_client : 

Type

$_key

$_key : 

Type

$_baseURL

$_baseURL : 

Type

Methods

__construct()

__construct(string  $key) 

ZeroBounceAPI constructor.

Parameters

string $key

the API Key

getCredits()

getCredits() : array

Wrapper for apiCall/getCredits

Returns

array

validate()

validate(string  $email, string  $ip) : array|mixed

Wrapper for apiCall/validate

Parameters

string $email

the email address to validate

string $ip

tge IP address to validate

Returns

array|mixed

_apiCall()

_apiCall(string  $method, array  $params) : mixed

This function is used for authentication and HTTP API calls.

Parameters

string $method

the method to execute

array $params

the params to pass to the call

Returns

mixed