Install the latest version with
$ composer require michalper/ipresso_api
<?php
$ipresso = new iPresso();
$ipresso->setLogin('login');
$ipresso->setPassword('password');
$ipresso->setCustomerKey('customerKey');
$ipresso->setUrl('https://yourdomain.ipresso.pl');
$token = $ipresso->getToken();
<?php
use \iPresso\Model\Contact;
use \iPresso\Service\Response;
$contact = new Contact();
$contact->setEmail('[email protected]');
$contact->setFirstName('FirstName');
$contact->setLastName('LastName');
/** @var Response $response */
$response = $ipresso->contact->add($contact);
<?php
use \iPresso\Service\Response;
$idContact = 1;
/** @var Response $response */
$response = $ipresso->contact->get($idContact);
<?php
use \iPresso\Service\Response;
use \iPresso\Model\ContactActivity;
$idContact = 1;
$contactActivity = new ContactActivity();
$contactActivity->setKey('activityKey');
$contactActivity->setDate('2017-01-01 00:00:01');
$contactActivity->addParameter('parameterKey','parameterValue');
/** @var Response $response */
$response = $ipresso->contact->addActivity($idContact, $contactActivity);
- iPresso REST API Client works with PHP 5.3 or above.
Bugs and feature request are tracked on GitHub