Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

jsarnowski / jsarnowski/brizy-pro   php

Repository URL to install this package:

Version: 2.3.7 

/ campaignmonitor / createsend-php / samples / get_apikey.php

<?php

require_once '../csrest_general.php';

$wrap = new CS_REST_General(NULL);

$result = $wrap->get_apikey('Your username', 'Your password', 'account.test.createsend.com');

echo "Result of /api/v3.1/apikey\n<br />";
if($result->was_successful()) {
    echo "Got API Key\n<br />".$result->response->ApiKey;
} else {
    echo 'Failed with code '.$result->http_status_code."\n<br /><pre>";
    var_dump($result->response);
    echo '</pre>';
}