2017 © Pedro Peláez
 

library intercom-php

Intercom PHP is library to connect Intercom APi

image

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

The README.md

Intercom Api Implementation for PHP

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 );

The Versions

28/08 2014

dev-master

9999999-dev

Intercom PHP is library to connect Intercom APi

  Sources   Download

MIT

The Requires