1. Go to this page and download the library: Download hernandev/hipchat-laravel library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
'api_token' => 'insert_your_api_token',
'app_name' => 'Your App Name',
'default_room' => null, // this is optional
HipChat::setRoom('RoomName');
HipChat::sendMessage('My Message');
// you have two optional parameters, `color` and `notify`
// the 'red' will set the message color, and the third parameter when `true` notify all users on the room
HipChat::sendMessage('My Message', 'red', true);
HipChat::setRoom('RoomName');
return HipChat::setRoomTopic('New Topic via API'); // boolean
HipChat::getUsers(); // json
HipChat::setUser('[email protected]'); // you can use id, email or @mention_name
HipChat::getUser(); // StdObject
HipChat::setUser('[email protected]'); // you can use id, email or @mention_name
// see optional fields on code
HipChat::createRoom('New Room Name'); // boolean
// you can use email, mention name or user_id
HipChat::setUser('[email protected]');
// same signature as create_user method, pass null the fields you dont want to update
HipChat::updateUser(null, 'NewFirst New Last'); // boolean
php artisan vendor:publish --tag=laravel
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.