PHP code example of firewards / convertkit-php-api
1. Go to this page and download the library: Download firewards/convertkit-php-api 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/ */
firewards / convertkit-php-api example snippets
$api = new \Firewards\Apis\ConvertKit($api_key, $api_secret);
$i = 0;
while ($subscribers = $api->getSubscribers($i++))
{
if (!isset($subscribers->subscribers) || count($subscribers->subscribers) === 0)
{
break;
}
var_dump($subscribers);
}