PHP code example of izziaraffaele / zanox-php

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

    

izziaraffaele / zanox-php example snippets




use Zanox\Api;

// Initialize the API
$api = new Api([
    'connectId' => 'your-connect-id',
    'privateKey' => 'your-private-key'
],'https://api.zanox.com/json','2011-03-01');

// Get a specific resource ( ONLY REPORTS AVAILABLE FOR NOW )
$reports = $api->resource('reports');

$reports->getLeadsByDate( DateTime $date, array $query = null)
$reports->getLeadsById( $id, array $query = null )
$reports->getSalesByDate( DateTime $date, array $query = null )
$reports->getSalesById( $id, array $query = null )
$reports->getBasic( DateTime $fromDate, DateTime $toDate, array $query = null)
bash
composer