1. Go to this page and download the library: Download helgesverre/snov-io library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
use HelgeSverre\Snov\Snov;
// Instantiate the client
$snov = new Snov(
clientId: config('snov-io.client_id'),
clientSecret: config('snov-io.client_secret'),
);
// Authenticate the client
$snov->authenticate($snov->getAccessToken());
// Call the API with a request
$snov->send(new EmailCountRequest(
domain: "snov.io",
));
$snov = new Snov(
clientId: config('snov-io.client_id'),
clientSecret: config('snov-io.client_secret'),
);
// No need to authenticate the client, the resource method will do it automatically
$snov->emailFinder()->emailCount(
domain: "snov.io",
);
shell
# Generate the API spec
php ./bin/generate.php
# Generate the Resource and Request classes from the API spec
php ./bin/codegen.php
# Format the generated code
composer format
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.