2017 © Pedro Peláez
 

library rest-api-client

A PHP class library for the iConneqt REST API.

image

iconneqt/rest-api-client

A PHP class library for the iConneqt REST API.

  • Friday, December 8, 2017
  • by iconneqt
  • Repository
  • 3 Watchers
  • 3 Stars
  • 3,237 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

iConneqt REST API PHP Client

Version 1.0.6, (*1)

A PHP class library for the iConneqt REST API., (*2)

license Build Status, (*3)

Copyright © 2016-2017 Advanced CRMMail Technology B.V., (*4)

Documentation

The API documentation can be found here: http://demo.iconneqt.nl/api/docs/., (*5)

Installation

Either use the included autoloader in src/autoloader.php or install using Composer:, (*6)

composer require iconneqt/rest-api-client

Classes

Class hierarchy in the src directory., (*7)

If you use Composer, you can add the src to the autoloader as such:, (*8)

/* @var $loader Composer\Autoload\ClassLoader */
$loader = require 'path-to-vendor/autoload.php';
$loader->add('Iconneqt', 'path-to-src');

The two most important classes are the following:, (*9)

\Iconneqt\Api\Rest\Iconneqt

High-level access to the iConneqt REST API, returning rich objects from which you can explore/dive into the API further., (*10)

Method calls to the Iconneqt class return objects where properties can be accessed using getters and further objects can be queried from the REST API., (*11)

Alternatively, you can just use the Iconneqt class directly., (*12)

\Iconneqt\Api\Rest\Client\Client

Low-level API access component used internally by the Iconneqt class., (*13)

Essentially, this class is a somewhat generic wrapper for cURL lightly tuned for the iConneqt REST API., (*14)

You may want to use this class if you want to use all available functionality the REST API has to offer or want to bypass the use of objects., (*15)

Method calls to the Client class return stdClass objects by default, but can be set to return associative arrays instead., (*16)

Examples

Examples in the example directory., (*17)

Authentication for examples

  • Copy the file auth.example.ini to auth.ini.
  • Put your iConneqt username and password in the new file.
  • If you are on a different server from demo.iconneqt.nl, change the URL in the auth.ini file accordingly.

Examples

  • check_email demonstrates a simple form to check if an email address exists on a given list. Start with this example as an introduction to the Iconneqt class.
  • form shows a dynamic form to add new subscribers to a list.
  • low-level demonstrates using the Client class directly.

The Versions

08/12 2017

dev-master

9999999-dev https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt

08/12 2017

1.0.6

1.0.6.0 https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt

28/09 2017

1.0.5

1.0.5.0 https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt

05/04 2017

1.0.4

1.0.4.0 https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt

30/03 2017

1.0.3

1.0.3.0 https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt

04/11 2016

1.0.2

1.0.2.0 https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt

14/10 2016

1.0.1

1.0.1.0 https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt

14/10 2016

1.0.0

1.0.0.0 https://github.com/iConneqt/PHP-REST-API-client

A PHP class library for the iConneqt REST API.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

api rest iconneqt