2017 © Pedro Peláez
 

library hipchat

HipChat API Client

image

zae/hipchat

HipChat API Client

  • Wednesday, November 5, 2014
  • by Zae
  • Repository
  • 1 Watchers
  • 2 Stars
  • 419 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Zae\HipChat

HipChat API Client, (*1)

This class provides easy access to v1 of the HipChat API:
https://www.hipchat.com/docs/api/, (*2)

Install

Installation via composer is very easy, simply add the package to your composer.json:, (*3)

"require": {  
    "zae/hipchat": "*"  
}

Or download the code and add the namespace to your autoloader or simply require() the files., (*4)

Usage

Normal:, (*5)

<?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:, (*6)

<?php
HipChat::sendMessage([  
    'auth_token' => 'XXXXXXXXXXX',  
    'room_id' => XXXX,  
    'from' => 'Zae\HipChat',  
    'notify' => 1,  
    'message' => "This is an example message",  
    'message_format' => 'text'  
]);

About

License

This project has an MIT license. See the LICENSE file for details., (*7)

Guzzle 4

The project uses guzzle 4's service descriptions to create an API Client., (*8)

Laravel

The project has easy L4 integration using it's ServiceProvider and Facade., (*9)

add the ServiceProvider to your list of providers in the config/app file:, (*10)

'providers' => array(  
    'Zae\HipChat\HipChatServiceProvider'    
)

and the Facade to the list of aliases in the config/app file:, (*11)

'aliases' => array(  
    'HipChat'v=> 'Zae\HipChat\Facades\HipChat'  
)

Author

Ezra Pool ezra@tsdme.nl, (*12)

TODO

  • Provide tests
  • Better auth technique?
  • APIv2

The Versions

05/11 2014

dev-master

9999999-dev

HipChat API Client

  Sources   Download

MIT

The Requires

 

by Ezra Pool

laravel api client guzzle hipchat

05/11 2014

0.2

0.2.0.0

HipChat API Client

  Sources   Download

MIT

The Requires

 

by Ezra Pool

laravel api client guzzle hipchat

31/05 2014

0.1

0.1.0.0

HipChat API Client

  Sources   Download

MIT

The Requires

 

by Ezra Pool

laravel api client guzzle hipchat