Download the PHP package vanilla/hipchat-api without Composer
On this page you can find all versions of the php package vanilla/hipchat-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package hipchat-api
HipChat API
hipchat-api
is a PHP library that provides an implementation of the HipChat v2 REST API.
Installation
hipchat-api requires PHP 5.4 or higher
hipchat-api
is PSR-4 compliant and can be easily installed using composer.
Just add vanilla/hipchat-api
to your composer.json.
Usage
HipChat uses OAuth2 tokens with specific scopes to control API access. You can request a token for yourself by visiting the HipChat Account/API page.
This example makes a call to the Users API to get all users.
- You can make the client throw an exception instead of returning
false
on error by callingsetThrowExceptions(true)
on$client
.
Custom API Endpoint
If you are using a private instance of HipChat, you can change the API base URL when you instantiate the client:
- You can also change the base URL at any time by calling
setBaseUrl()
on an existing$client
.
Current status
The following list shows methods available and missing:
Add ons
- [ ] Get addon installable data
- [ ] Create addon link
- [ ] Invoke addon link
- [ ] Delete addon link
Capabilities
- [x] 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
- [x] Get avatar
- [X] Update avatar
- [X] Delete avatar
- [x] Get room message
- [x] View room history
- [x] View recent room history
- [ ] Get glance
- [ ] Create glance
- [ ] Delete glance
- [x] Invite user
- [x] Add member
- [x] Remove member
- [x] Get all members
- [x] Get all participants
- [x] Send message
- [x] Send room notification
- [x] Reply to message
- [ ] Share file with room
- [ ] Share link with room
- [x] Get room statistics
- [x] Set topic
- [x] 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
- [x] View privatechat history
- [x] View recent privatechat history
- [x] Get private chat message
- [x] Send message to user
- [x] Get photo
- [x] Upload photo
- [x] Delete photo
- [x] Get preference (auto-join)
- [ ] Share file with user
- [ ] Share link with user