PHP code example of ebrahimpleite / convertkit

1. Go to this page and download the library: Download ebrahimpleite/convertkit 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/ */

    

ebrahimpleite / convertkit example snippets



_key = '';
$convertkit = new \EbrahimPLeite\ConvertKit\ConvertKit($api_key);

$subscribe = $convertkit->addSubscribe(
    "123", //ith commas (tags)
    "P. Leite" //optional (last_name)
);
var_dump($subscribe);