hipchat / hipchat-php Goto Github PK
View Code? Open in Web Editor NEWA PHP library for interacting with the HipChat REST API.
Home Page: http://www.hipchat.com
License: MIT License
A PHP library for interacting with the HipChat REST API.
Home Page: http://www.hipchat.com
License: MIT License
I'm having to write some wrapper scripts for our user management and am trying to use your library.
Works fine as [email protected] but not [email protected]
PHP Fatal error: Uncaught exception 'HipChat\HipChat_Exception' with message 'HipChat API error: code=500, info=HTTP status code: 500, response={"error":{"code":500,"type":"Internal Server Error","message":"Unable to create user"}}, url=https://hipchat.example.com/v1/users/create' in /root/hipchat/hipchat-php/src/HipChat/HipChat.php:390
Stack trace:
#0 /root/hipchat/hipchat-php/src/HipChat/HipChat.php(442): HipChat\HipChat->curl_request('https://hipchat...', Array)
#1 /root/hipchat/hipchat-php/src/HipChat/HipChat.php(274): HipChat\HipChat->make_request('users/create', Array, 'POST')
#2 /root/hipchat/hipchat-php/manage_user.php(66): HipChat\HipChat->create_user('it-notice@examp...', 'A irworf', 'airwolf')
#3 {main}
thrown in /root/hipchat/hipchat-php/src/HipChat/HipChat.php on line 390
The composer installation instruction is incorrect, because hipchat/hipchat-php doesn't resolve on Packagist. Replace it with dshimy/hipchat-php.
Function utf8_encode
is used in many places. As it can be read in the docs, input for this function must be An ISO-8859-1 string. If it's not, utf8_encode
will most likely return garbage.
This is happening in my case, when I'm using message_room
function.
My input as $message
parameter (utf-8 encoded):
ZAŻÓŁĆ GĘŚLĄ JAŹŃ zażółć gęślą jaźń
expected output:
ZAŻÓŁĆ GĘŚLĄ JAŹŃ zażółć gęślą jaźń
actual output:
ZAÅ»ÃÅÄ GÄÅLÄ JAŹŠzażóÅÄ gÄÅlÄ jaźÅ
If utf8_encode($message)
is changed to just $message
everything works fine.
Unfortunately it can't be simply removed since I believe there are other users relying on this conversion. Is there any other way to solve the issue?
Can you guys push a new stable release for #23 implement?
As a new feature,v1.4
should be the best.
This is needed for another library dependent of yours with this new feature: ManneW/HipChatBundle#6
ping @zsiddique @powdahound
Regards
I found an error in curl request. I use open_basedir (php 5.5.33) option.
ErrorException' with message 'curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when an open_basedir is set' in /project/path/vendor/hipchat/hipchat-php/src/HipChat/HipChat.php:366
There have been a lot of updates since the v1.2 tag.
Does this library support the message_format ? I tried adding it ... but still couldn't get @mentions to work....
An archive_room()
method is self explanatory.
Mass archive and mass delete rooms could allow either an array of ids or a comma delimited string of ids to be passed to the existing delete_room()
method. This would help save on the number of API requests required to delete or archive a large group of rooms.
Can this be updated to use the v2 API?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.