Laravel 5.x Wrapper for Intercom API
Using Composer:
composer require slaughter550/intercom-laravel
config/app.php
'providers' => [
'Shadow\IntercomLaravel\ServiceProvider',
],
'aliases' => [
'Intercom' => 'Shadow\IntercomLaravel\Facade',
],
config/services.php
'intercom' => [
'app_id' => 'appIdGoesHere',
'api_key' => 'apiKeyGoesHere',
],
// Create/update a user
Intercom::users()->create([
'email' => '[email protected]'
]);