2017 © Pedro Peláez
 

library smarteventmanager

Library for using the Voorraedt Smart Event Manager Application Programming Interface (API)

image

opifer/smarteventmanager

Library for using the Voorraedt Smart Event Manager Application Programming Interface (API)

  • Friday, May 19, 2017
  • by rvanlaarhoven
  • Repository
  • 5 Watchers
  • 1 Stars
  • 1,833 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

SmartEventManager API PHP client

The SmartEventManager API PHP client enables PHP developers to use SmartEventManager API in their PHP code. The client is written on SEM API version 8.1.16, but other versions should probably work. All the current implemented API functionality is described in the description.json, for expanding the client functionality this is also the place to get starting., (*1)

Prerequisites

  • SmartEventManager API version 8.1.16 or above
  • PHP 5.3 or above
  • curl, json extensions must be enabled
  • composer for fetching dependencies (See http://getcomposer.org)

To install, (*2)

composer require opifer/smarteventmanager

or add this to your composer.json, and composer update, (*3)

{
    "require": {
        "opifer/smarteventmanager": "0.*"
    }
}

Quick Example

Getting companies

<?php

require 'vendor/autoload.php';

use Opifer\SmartEventManager\Client\Config;
use Opifer\SmartEventManager\Client\Client;
use Guzzle\Http\Exception\BadResponseException;
use Guzzle\Http\Exception\CurlException;

$config = new Config();
$config->setBaseUrl('https://myapihost.dev')
    ->setUserName('user')
    ->setPassword('password');
    //->setDebug(); // Show Guzzle request & response (headers + body)

try {
    $client = Client::getInstance($config);
    $companies = $client->getCompanies();
} catch (CurlException $e) {
    print "Error CurlException: " . $e->getMessage() . "\n";
} catch (BadResponseException $e) {
    print "Error BadResponseException: " . $e->getMessage() . "\n";
}

The Versions

19/05 2017

dev-master

9999999-dev

Library for using the Voorraedt Smart Event Manager Application Programming Interface (API)

  Sources   Download

GPL

The Requires

 

22/08 2014

1.0

1.0.0.0

Library for using the Voorraedt Smart Event Manager Application Programming Interface (API)

  Sources   Download

GPL

The Requires