darkin1 / intercom by darkin1

Wrapper on the Intercom class provided by Intercom - with support for Laravel 5.x
83,586
15
2
Package Data
Maintainer Username: darkin1
Maintainer Contact: dciesielski87@gmail.com (Dariusz Ciesielski)
Package Create Date: 2016-03-26
Package Last Update: 2021-05-19
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-14 15:07:05
Package Statistics
Total Downloads: 83,586
Monthly Downloads: 273
Daily Downloads: 0
Total Stars: 15
Total Watchers: 2
Total Forks: 12
Total Open Issues: 0

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