mamor/php-hipchat

0.1.0 2015-02-06 14:43 UTC

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

  1. get($uri, $data = [])
  2. post($uri, $data = [])
  3. put($uri, $data = [])
  4. patch($uri, $data = [])
  5. delete($uri, $data = [])
  6. head($uri, $data = [])
  7. options($uri, $data = [])
  8. 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