sitemavens / intercom-php
Intercom PHP is library to connect Intercom APi
dev-master
2014-08-28 21:11 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: 4.2.*
This package is not auto-updated.
Last update: 2025-08-12 07:45:30 UTC
README
This is a very simple implementation of the Intercom Api.
Installing via Composer
The recommended way to install the library is through Composer.
{ "require": { "sitemavens/intercom-php": "dev-master" } }
How you use it
\IntercomPhp\Config::init( 'your_app_id', 'your_api_key' ); $user = new \IntercomPhp\Domain\User(); $user->setName( 'Pepe Florez' ); $user->setEmail( 'pepe@florez.com' ); $user->setId( 1234 ); $user->setRemoteCreatedAt( time() ); // You should set this prop to "true" if you are tracking when a user logs in $user->setNewSession(true); $users = new \IntercomPhp\Users(); $result = $users->addUser( $user );