credy/yii2-zerobounce-client
最新稳定版本:2.0.0
Composer 安装命令:
composer require credy/yii2-zerobounce-client
包简介
Yii2 client for zerobounce.net API
关键字:
README 文档
README
Yii client for https://www.zerobounce.net API
API docs are available at https://www.zerobounce.net/docs/
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require alexeevdv/yii2-zerobounce-client "^1.0"
or add
"alexeevdv/yii2-zerobounce-client": "^1.0"
to the `require` section of your composer.json file.
Configuration
'container' => [
'singletons' => [
credy\zerobounce\ClientInterface::class => [
'class' => credy\zerobounce\Client::class,
'apiKey' => 'a95c530a7af5f492a74499e70578d150',
],
],
],
Usage
Validate email
$client = yii\di\Instance::ensure(credy\zerobounce\ClientInterface::class);
$result = $client->validate('valid@example.com');
if ($result->isValid()) {
// do your stuff
}
Get credits
$client = yii\di\Instance::ensure(credy\zerobounce\ClientInterface::class);
$credits = $client->getCredits();
Send file
$client = yii\di\Instance::ensure(credy\zerobounce\BulkClientInterface::class);
$result = $client->sendFile('file.csv', 'http://site.com/your-postback-link/');
Read file
$client = yii\di\Instance::ensure(credy\zerobounce\BulkClientInterface::class);
//File uuid received from sendFile response
$result = $client->readFile($uuid);
Delete file
$client = yii\di\Instance::ensure(credy\zerobounce\BulkClientInterface::class);
//File uuid received from sendFile response
$result = $client->deleteFile($uuid);
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-17