dev-master
9999999-devLibrary for intercom client with error handling
The Requires
dev-dev
dev-devLibrary for intercom client with error handling
The Requires
1.0
1.0.0.0Library for intercom client with error handling
The Requires
Wallogit.com
2017 © Pedro Peláez
Library for intercom client with error handling
Requires intercom-php v3.0.0, (*1)
Using Composer:, (*2)
The recommended way to install intercomsdk is through Composer:, (*3)
First, install Composer:, (*4)
$ curl -sS https://getcomposer.org/installer | php
Next, install the latest intercomsdk:, (*5)
$ php composer.phar require devtechxm/intercomsdk
Finally, you can include the files in your PHP script:, (*6)
require "vendor/autoload.php";
use Intercom\Api; $intercom = new Api(appId, apiKey);
// Get a user
try
{
$client = $intercom->client;
//same as intercom-php sdk
$response = $client->users->getUsers(["email" => "nouser@intercom.io"]);
}
catch (Exception $e)
{
$response = $intercom->parseExceptionError($e);
}
echo '<pre>';
print_r($response);
For More details visit intercom reference, (*7)
Library for intercom client with error handling
Library for intercom client with error handling
Library for intercom client with error handling