PHP code example of darkin1 / intercom

1. Go to this page and download the library: Download darkin1/intercom library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

darkin1 / intercom example snippets


Darkin1\Intercom\IntercomServiceProvider::class,

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


return [
    'access_token' => env('INTERCOM_ACCESS_TOKEN', '****'),
    'api_version' => env('INTERCOM_API_VERSION', '1.1'),
];


use Intercom;

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

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