2017 © Pedro Peláez
 

library zanox-php

PHP client for Zanox API

image

izziaraffaele/zanox-php

PHP client for Zanox API

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 12 % Grown

The README.md

Zanox PHP API Client

A very user-friendly PHP client for Zanox., (*1)

Requirements: - PHP must be 5.5 or higher. - Guzzle 6 as HTTP client., (*2)

Instalation

Use Composer., (*3)

Install Composer Globally (Linux / Unix / OSX):, (*4)

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Run this Composer command to install the latest stable version of the client, in the current folder:, (*5)

composer require izziaraffaele/zanox-php

After installing, require Composer's autoloader and you're good to go:, (*6)

<?php
require 'vendor/autoload.php';

Getting Started

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)

Docs

Please refer to the source code for now, while a proper documentation is made., (*7)

The Versions

06/03 2016

dev-master

9999999-dev https://github.com/izziaraffaele/zanox-php

PHP client for Zanox API

  Sources   Download

MIT

The Requires

 

The Development Requires

client guzzle zanox zanox-php

03/03 2016

0.0.1

0.0.1.0 https://github.com/izziaraffaele/zanox-php

PHP client for Zanox API

  Sources   Download

MIT

The Requires

 

The Development Requires

client guzzle zanox zanox-php