PHP Classes

Intercom PHP Class: Wrapper to access the Intercom API

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 45 All time: 10,795 This week: 455Up
Version License PHP version Categories
intercom 1.0Custom (specified...5PHP 5, Web services
Description 

Author

This package can be used as wrapper to access the Intercom API.

It provides a simplified interface to create PHP objects that can call the Intercom API.

The package reads some values from configuration files and calls the PHP Intercom API to create an access token, so it will be used to from the Intercom API class to perform any other calls supported by this API.

Picture of Dariusz
Name: Dariusz <contact>
Classes: 2 packages by
Country: Poland Poland
Age: ???
All time rank: 428898 in Poland Poland
Week rank: 180 Up1 in Poland Poland Up

Documentation

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


  Files folder image Files (12)  
File Role Description
Files folder imageconfig (1 file)
Files folder imagesrc (2 files, 1 directory)
Files folder imagetests (2 files)
Accessible without login Plain text file .styleci.yml Data Auxiliary data
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Read me

  Files folder image Files (12)  /  config  
File Role Description
  Accessible without login Plain text file intercom.php Aux. Auxiliary script

  Files folder image Files (12)  /  src  
File Role Description
Files folder imageFacades (1 file)
  Plain text file IntercomApi.php Class Class source
  Plain text file IntercomServiceProvider.php Class Class source

  Files folder image Files (12)  /  src  /  Facades  
File Role Description
  Plain text file Intercom.php Class Class source

  Files folder image Files (12)  /  tests  
File Role Description
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Plain text file HelloWorldTest.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:45
This week:0
All time:10,795
This week:455Up