2017 © Pedro Peláez
 

library intercomsdk

Library for intercom client with error handling

image

devtechxm/intercomsdk

Library for intercom client with error handling

  • Monday, August 22, 2016
  • by devtechxm
  • Repository
  • 0 Watchers
  • 0 Stars
  • 112 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 1 % Grown

The README.md

Installation

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";

Clients

use Intercom\Api;

$intercom = new Api(appId, apiKey);

Users

// 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)

The Versions

22/08 2016

dev-master

9999999-dev

Library for intercom client with error handling

  Sources   Download

The Requires

 

22/08 2016

dev-dev

dev-dev

Library for intercom client with error handling

  Sources   Download

The Requires

 

22/08 2016

1.0

1.0.0.0

Library for intercom client with error handling

  Sources   Download

The Requires