skip405/kickbox-wordpress
Composer 安装命令:
composer require skip405/kickbox-wordpress
包简介
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.
README 文档
README
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( "jane.doe@example.com" );
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( "jane.doe@example.com", "john.doe@example.com" ), 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( "jane.doe@example.com", "john.doe@example.com" ), 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.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-13