HipChat API Client
This class provides easy access to v1 of the HipChat API:
https://www.hipchat.com/docs/api/
Installation via composer is very easy, simply add the package to your composer.json:
"require": {
"zae/hipchat": "*"
}
Or download the code and add the namespace to your autoloader or simply require() the files.
Normal:
<?php
$hipchat = new Zae\HipChat\Client();
$hipchat->sendMessage([
'auth_token' => 'XXXXXXXXXXX',
'room_id' => XXXX,
'from' => 'Zae\HipChat',
'notify' => 1,
'message' => "This is an example message",
'message_format' => 'text'
]);
Laravel 4 Facade:
<?php
HipChat::sendMessage([
'auth_token' => 'XXXXXXXXXXX',
'room_id' => XXXX,
'from' => 'Zae\HipChat',
'notify' => 1,
'message' => "This is an example message",
'message_format' => 'text'
]);
This project has an MIT license. See the LICENSE
file for details.
The project uses guzzle 4's service descriptions to create an API Client.
The project has easy L4 integration using it's ServiceProvider and Facade.
add the ServiceProvider to your list of providers in the config/app file:
'providers' => array(
'Zae\HipChat\HipChatServiceProvider'
)
and the Facade to the list of aliases in the config/app file:
'aliases' => array(
'HipChat'v=> 'Zae\HipChat\Facades\HipChat'
)
Ezra Pool ezra@tsdme.nl
- Provide tests
- Better auth technique?
- APIv2