PHP code example of jjacobstech / roqqu

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

    

jjacobstech / roqqu example snippets




return [
      'api' => [
            'private_key' => env('ROQQU_PRIVATE_KEY'),
            'public_key' => env('ROQQU_PUBLIC_KEY'),
            'url' => env('ROQQU_URL', 'https://roqqu-api.redocly.app/_mock/apis'),
      ],
      'timeout' => 30
];



function myRoqqu(){
      
$private_key = config('roqqu.api.private_key');
$public_key = config('roqqu.api.public_key');
$url = config('roqqu.api.url');
$timeout = config('roqqu.timeout');

$roqqu = new RoqquApi($private_key, $public_key, $url, $timeout);

$response = $roqqu->customersBlacklist("[email protected]",  'reason');

return $response;
}