2017 © Pedro Peláez
 

library hipchat-v2-api-client

Hipchat v2 API client

image

gorkalaucirica/hipchat-v2-api-client

Hipchat v2 API client

  • Monday, December 4, 2017
  • by gorkalaucirica
  • Repository
  • 10 Watchers
  • 86 Stars
  • 116,228 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 57 Forks
  • 15 Open issues
  • 10 Versions
  • 6 % Grown

The README.md

Hipchat v2 Api Client

This library is unmantained. Check this fork by solutionDrive, (*1)

PHP Library to process calls to Hipchat's v2 REST API, (*2)

Latest Stable Version Total Downloads Latest Unstable Version License Build Status Scrutinizer Code Quality SensioLabsInsight, (*3)

This package is work in progress and some functionality is not available yet., (*4)

Installation

The recommended way to install Hipchatv2ApiClient is through Composer. To install this library, run the command below and you will get the latest version:, (*5)

composer require gorkalaucirica/hipchat-v2-api-client

Usage

All queries need the following two lines. The first one is to authenticate yourself and the second one creates a client that is used by the API classes to perform requests to the API. That is enough to start, now check the API calls section to see how to use the $client to send requests to the API., (*6)

use GorkaLaucirica\HipchatAPIv2Client\Auth\OAuth2;
use GorkaLaucirica\HipchatAPIv2Client\Client;

$auth = new OAuth2('tokenYouCanGetInHipchatSite');
$client = new Client($auth);

Client for private instances

After version 1.5.0 you can set the URL in the constructor to change the base url used by the client (by default uses https://api.hipchat.com, (*7)

$client = new Client($auth, null, 'https.//api.yourdomain.com');

API calls

All API call methods are located in the API folder. All of them have been documented and all have a link to Hipchat v2 API documentation. Some examples:, (*8)

Getting user by mention name:

use GorkaLaucirica\HipchatAPIv2Client\API\UserAPI;

$userAPI = new UserAPI($client);
$user = $userAPI->getUser('@gorkalaucirica');

Getting all rooms

use GorkaLaucirica\HipchatAPIv2Client\API\RoomAPI;

$roomAPI = new RoomAPI($client);
$room = $roomAPI->getRooms(array('max-results' => 30));

Current status

The following list shows methods available and missing:, (*9)

Add ons

  • [ ] Get addon installable data
  • [ ] Create addon link
  • [ ] Invoke addon link
  • [ ] Delete addon link

Capabilities

  • [ ] Get capabilities

Emoticons

  • [ ] Get emoticon
  • [ ] Get all emoticons

OAuth Sessions

  • [ ] Generate token
  • [ ] Get session
  • [ ] Delete session

Rooms

  • [x] Get all rooms
  • [x] Create room
  • [x] Get room
  • [x] Update room
  • [x] Delete room
  • [ ] Get avatar
  • [ ] Update avatar
  • [ ] Delete avatar
  • [ ] Get room message
  • [ ] View room history
  • [x] View recent room history
  • [x] Invite user
  • [x] Add member
  • [x] Remove member
  • [ ] Get all members
  • [ ] Send message
  • [x] Send room notification
  • [ ] Get all participants
  • [ ] Reply to message
  • [ ] Share file with room
  • [ ] Get room statistics
  • [x] Set topic
  • [ ] Get webhook
  • [x] Delete webhook
  • [x] Get all webhooks
  • [x] Create webhook

Users

  • [x] Get all users
  • [x] Create user
  • [x] View user
  • [x] Update user
  • [x] Delete user
  • [ ] Get privatechat message
  • [x] View recent privatechat history
  • [x] Private message user
  • [x] Get photo
  • [ ] Upload photo
  • [ ] Delete photo
  • [ ] Get auto join rooms
  • [ ] Share file with user
  • [ ] Share link with user

The Versions

04/12 2017

dev-master

9999999-dev https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

30/04 2016

v1.5.1

1.5.1.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

08/10 2015

v1.5.0

1.5.0.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

11/04 2015

v1.4.0

1.4.0.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

04/02 2015

v1.3.1

1.3.1.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

30/10 2014

v1.3.0

1.3.0.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

14/10 2014

v1.2.0

1.2.0.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

08/10 2014

v1.1.1

1.1.1.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

07/10 2014

v1.1.0

1.1.0.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2

12/07 2014

v1.0.0

1.0.0.0 https://github.com/gorkalaucirica/HipchatAPIv2Client

Hipchat v2 API client

  Sources   Download

MIT

The Requires

 

The Development Requires

api library client hipchat v2