Skip to content

Latest commit

 

History

History
67 lines (43 loc) · 1.98 KB

README.md

File metadata and controls

67 lines (43 loc) · 1.98 KB

Kickbox Verifications using WordPress request functions

Packagist Packagist

This package provides a Kickbox Email Verification API-client that uses WordPress HTTP-requests functions. Ideal if you want to employ Kickbox email verification in a WordPress plugin or theme.

Installation

Install via composer:

composer require skip405/kickbox-wordpress

Examples

Verify a single email address

// include your composer dependencies
require_once 'vendor/autoload.php';

$client = new Skip405\Kickbox\WordPress\Client( "KICKBOX_API_KEY" );

$verified_email = $client->verify( "[email protected]" );

See response examples in the wiki.

Batch verification

// include your composer dependencies
require_once 'vendor/autoload.php';

$client = new Skip405\Kickbox\WordPress\Client( "KICKBOX_API_KEY" );

$batch = $client->verify_batch(
    array( "[email protected]", "[email protected]" ),
    array( "filename" => "My batch filename" )
);

See response examples in the wiki.

Check batch verification status

// include your composer dependencies
require_once 'vendor/autoload.php';

$client = new Skip405\Kickbox\WordPress\Client( "KICKBOX_API_KEY" );

$batch = $client->verify_batch(
    array( "[email protected]", "[email protected]" ),
    array( "filename" => "My batch filename" )
);

$batch_status = $client->check_batch( $batch['data']['body']['id'] );

See response examples in the wiki.

License

The MIT License (MIT). Please see License File for more information.