PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Dariusz   Intercom PHP Class   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Read me
Class: Intercom PHP Class
Wrapper to access the Intercom API
Author: By
Last change:
Date: 5 years ago
Size: 1,300 bytes
 

Contents

Class file image Download

Intercom

Latest Stable Version Donate StyleCI Build Status

Wrapper on the Intercom class provided by Intercom - with support for Laravel 5.x

Installation

Installation using composer:

composer require darkin1/intercom

And add the service provider in config/app.php:

Darkin1\Intercom\IntercomServiceProvider::class,

And add the facade alias in config/app.php:

'Intercom'  => Darkin1\Intercom\Facades\Intercom::class,

Configuration

Change your default settings in app/config/intercom.php:

<?php
return [
    'access_token' => env('INTERCOM_ACCESS_TOKEN', ''),
];

Example


use Intercom;

$users = Intercom::users()->getUsers([]);

$leads = Intercom::leads()->getLeads([]);

Documentation

Intercom API