2017 © Pedro Peláez
 

library tulip-api-client

PHP client library for communicating with the Tulip API.

image

connectholland/tulip-api-client

PHP client library for communicating with the Tulip API.

  • Wednesday, February 21, 2018
  • by niels-nijens
  • Repository
  • 5 Watchers
  • 0 Stars
  • 7,838 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 4 Forks
  • 2 Open issues
  • 7 Versions
  • 6 % Grown

The README.md

Tulip API client

Latest version on Packagist Software License ![Scrutinizer Code Quality][ico-quality] ![Build Status][ico-build] [Code Coverage][link-coverage], (*1)

PHP client library for communicating with the Tulip API., (*2)

Installation using Composer

Run the following command to add the package to the composer.json of your project:, (*3)

``` bash $ composer require connectholland/tulip-api-client, (*4)


#### Versioning This library uses [Semantic Versioning 2](http://semver.org/) for new versions. ## Usage Below are some common usage examples for the API client. For more information, please see the Tulip API documentation that is supplied when you want to integrate with the Tulip CRM software. ```php <?php $client = new ConnectHolland\TulipAPI\Client('https://api.example.com', '1.1'); // Calls https://api.example.com/api/1.1/contact/detail with id=1 $response = $client->callService('contact', 'detail', array('id' => 1));

Inserting an object

<?php

$client = new ConnectHolland\TulipAPI\Client('https://api.example.com', '1.1');

// Calls https://api.example.com/api/1.1/contact/save
$response = $client->callService('contact', 'save', array(
    'firstname' => 'John',
    'lastname' => 'Doe',
    'email' => 'johndoe@gmail.com',
));

Updating an object

<?php

$client = new ConnectHolland\TulipAPI\Client('https://api.example.com', '1.1');

// Calls https://api.example.com/api/1.1/contact/save
$response = $client->callService('contact', 'save', array(
    'id' => 1,
    'firstname' => 'Jane',
    'lastname' => 'Doe',
    'email' => 'janedoe@gmail.com',
));

Uploading a file when inserting / updating an object

<?php

$client = new ConnectHolland\TulipAPI\Client('https://api.example.com', '1.1');

// Calls https://api.example.com/api/1.1/contact/save
$response = $client->callService('contact', 'save',
    array(
        'id' => 1,
        'firstname' => 'Jane',
        'lastname' => 'Doe',
        'email' => 'janedoe@gmail.com',
    ),
    array(
        'photo' => fopen('/path/to/files/photo.jpg', 'r'),
    )
);

Credits

Also see the list of contributors who participated in this project., (*5)

License

This library is licensed under the MIT License. Please see the LICENSE file for details., (*6)

The Versions

21/02 2018

dev-master

9999999-dev

PHP client library for communicating with the Tulip API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api tulip

21/02 2018

1.1.1

1.1.1.0

PHP client library for communicating with the Tulip API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api tulip

21/02 2018

1.1.0

1.1.0.0

PHP client library for communicating with the Tulip API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api tulip

15/12 2017

1.0.x-dev

1.0.9999999.9999999-dev

PHP client library for communicating with the Tulip API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api tulip

15/12 2017

1.0.2

1.0.2.0

PHP client library for communicating with the Tulip API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api tulip

12/12 2017

1.0.1

1.0.1.0

PHP client library for communicating with the Tulip API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api tulip

13/01 2016

1.0.0

1.0.0.0

PHP client library for communicating with the Tulip API.

  Sources   Download

MIT

The Requires

 

The Development Requires

api tulip