<?php

require '../Auth.php';
require '../../vendor/autoload.php';
use BrightLocal\Api;
$api = new Api(API_KEY, API_SECRET, API_ENDPOINT);
$success = $api->post('/v4/rf/add', ['report-name' => 'Le Bernardin', 'client-id' => 0, 'business-name' => 'Le Bernardin', 'contact-telephone' => '+1 212-554-1515', 'address1' => '155 West 51st Street', 'address2' => '', 'city' => 'New York', 'postcode' => '10019', 'country' => 'USA', 'schedule' => 'M', 'run-on' => 1, 'receive-email-alerts' => 0, 'alert-email-addresses' => '["*****@*****.**","*****@*****.**","*****@*****.**"]', 'white-label-profile-id' => null, 'is-public' => 1]);
print_r($success);
<?php

require '../Auth.php';
require '../../vendor/autoload.php';
use BrightLocal\Api;
$api = new Api(API_KEY, API_SECRET, API_ENDPOINT);
$success = $api->post('/v4/rf/add', ['report-name' => 'Le Bernardin', 'client-id' => 0, 'business-name' => 'Le Bernardin', 'contact-telephone' => '+1 212-554-1515', 'address1' => '155 West 51st Street', 'address2' => '', 'city' => 'New York', 'postcode' => '10019', 'country' => 'USA', 'schedule' => 'M', 'run-on' => 1, 'receive-email-alerts' => 0, 'alert-email-addresses' => '["*****@*****.**","*****@*****.**","*****@*****.**"]', 'white-label-profile-id' => null, 'is-public' => 1, 'directories' => json_encode(['yellowbot' => ['url' => 'http://www.yellowbot.com/le-bernardin-new-york-ny.html', 'include' => 1], 'yellowpages' => ['url' => 'http://www.yellowpages.com/new-york-ny/mip/le-bernardin-9909153', 'include' => 1], 'yelp' => ['url' => 'http://www.yelp.com/biz/le-bernardin-new-york', 'include' => 1]])]);
print_r($success);