mobio/hasoffers

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP library for HasOffers API

0.0.2 2016-02-16 20:49 UTC

This package is not auto-updated.

Last update: 2017-02-04 08:28:37 UTC


README

HasOffers API

Установка с помощью composer:

{
  "require": {
    "mobio/hasoffers": "*"
  }
}

Пример использования:

<?php
include __DIR__. "/vendor/autoload.php";

$networkId = '...';
$networkToken = '...';

$hoApi = new \Mobio\HasOffers\Api($networkId, $networkToken);

$params = [
    'filters' => array(
        'datetime' => array(
            'GREATER_THAN_OR_EQUAL_TO' => '2015-12-09'
        )
    ),
    'limit' => '3',
    'page' => '1'
];

try {
    $conversionArray = $hoApi->request('Conversion', 'findAll', $params)->getDataData();
} catch (Exception $e) {
    echo $e->getMessage();
    die();
}

var_dump($conversionArray);