2017 © Pedro Peláez
 

library php-hipchat

image

mamor/php-hipchat

  • Friday, February 6, 2015
  • by mamor
  • Repository
  • 1 Watchers
  • 1 Stars
  • 447 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 1 % Grown

The README.md

php-hipchat

A simple library for HipChat API, (*1)

Install

$ composer require mamor/php-hipchat

Example for "Send room notification" API

https://www.hipchat.com/docs/apiv2/method/send_room_notification, (*2)

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

The Versions

06/02 2015

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

by Avatar mamor

06/02 2015

0.1.0

0.1.0.0

  Sources   Download

MIT

The Requires

 

by Avatar mamor