PHP code example of necenzurat / 2parale

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

    

necenzurat / 2parale example snippets



use DouaParale\Parale\Parale;

/* New Object */

$parale = new Parale("2parale_user","2parale_password");
$commissions = $parale->call('commissions/listforaffiliate');
var_dump($commissions)

/* With arguments */

$campaings = $parale->call(
	'campaigns/listforaffiliate',
	array("page" => "1") // just pass in an array
	);
var_dump($campaings);