mamor / php-hipchat
0.1.0
2015-02-06 14:43 UTC
Requires
This package is auto-updated.
Last update: 2024-10-19 20:09:12 UTC
README
A simple library for HipChat API
Install
$ composer require mamor/php-hipchat
Example for "Send room notification" API
https://www.hipchat.com/docs/apiv2/method/send_room_notification
<?php
require_once './vendor/autoload.php';
$hipChat = new Mamor\HipChat('YOUR_API_TOKEN');
$hipChat->post('/v2/room/{id_or_name}/notification', ['message' => 'Hello!']);
var_dump($hipChat->curl()->response);
Methods
- get($uri, $data = [])
- post($uri, $data = [])
- put($uri, $data = [])
- patch($uri, $data = [])
- delete($uri, $data = [])
- head($uri, $data = [])
- options($uri, $data = [])
- curl() ... return Object of https://github.com/php-curl-class/php-curl-class
License
Copyright 2015, Mamoru Otsuka. Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php