library intercom-php
Intercom PHP is library to connect Intercom APi
sitemavens/intercom-php
Intercom PHP is library to connect Intercom APi
- Thursday, August 28, 2014
- by mustela
- Repository
- 4 Watchers
- 0 Stars
- 14 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
This is a very simple implementation of the Intercom Api., (*1)
Installing via Composer
The recommended way to install the library is through
Composer., (*2)
{
"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 );
dev-master
9999999-dev
Intercom PHP is library to connect Intercom APi
Sources
Download
MIT
The Requires