Download the PHP package atlir/intercom-php without Composer
On this page you can find all versions of the php package atlir/intercom-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download atlir/intercom-php
More information about atlir/intercom-php
Files in atlir/intercom-php
Package intercom-php
Short Description Intercom API client built on top of Guzzle 3
License Apache Version 2
Informations about the package intercom-php
intercom-php
PHP bindings for the Intercom API (https://api.intercom.io).
Installation
The API client can be installed via Composer.
In your composer.json file:
Once the composer.json file is created you can run composer install
for the initial package install and composer update
to update to the latest version of the API client.
The client uses Guzzle.
Basic Usage
Remember to include the Composer autoloader in your application:
Configure your access credentials when creating a client:
Local Testing
Run phpunit
from the project root to start all tests.
Resources
Resources this API supports:
https://api.intercom.io/users
https://api.intercom.io/companies
https://api.intercom.io/tags
https://api.intercom.io/notes
https://api.intercom.io/segments
https://api.intercom.io/events
https://api.intercom.io/conversations
https://api.intercom.io/messages
https://api.intercom.io/counts
Examples
Users
Admins
Companies
Tags
Segments
Notes
Conversations
Counts
Sending messages
Events
Metadata Objects support a few simple types that Intercom can present on your behalf
The metadata key values in the example are treated as follows-
- order_date: a Date (key ends with '_date').
- stripe_invoice: The identifier of the Stripe invoice (has a 'stripe_invoice' key)
- order_number: a Rich Link (value contains 'url' and 'value' keys)
- price: An Amount in US Dollars (value contains 'amount' and 'currency' keys)