nntuple/millionverifier-client

There is no license information available for the latest version (1.0.0) of this package.

1.0.0 2021-07-26 03:24 UTC

This package is auto-updated.

Last update: 2024-03-29 04:26:50 UTC


README

PHP Client for Millionverifier APIs.

example

use Ntuple\MillionverifierClient\Client;
use Ntuple\MillionverifierClient\VerifyEamail\Request;

# you api key
$api_key = 'API_KEY_FOR_TEST';

client = new Client($api_key);

# use Constructor
$req = new Request;
$req->email = 'garam-park@naver.com';
$req->time_out = 10;

# use static factory method
$req = Request::fromArray([
    'email' => 'garam-park@naver.com',
    'time_out' => 10,
]);

$resp = $client->verifyEmail($req);

echo (json_encode($resp));