PHP code example of mizanur / getresponse-api-php

1. Go to this page and download the library: Download mizanur/getresponse-api-php 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/ */

    

mizanur / getresponse-api-php example snippets


composer 

$api_key = 'YOUR-API-KEY';

$client = new jsonRPCClient($api_url);
$campaigns = $client->get_campaigns($api_key);
echo "<pre>";print_r($campaigns);
`
$campaigns = $client->get_campaigns(
    $api_key,
    [
        'name' => [ 'EQUALS' => 'YOUR-CAMPAIGN-NAME' ]
    ]
);
echo "<pre>";print_r($campaigns);