Git Product home page Git Product logo

hipchat-php's People

Contributors

adriankirchner avatar anaxamaxan avatar apfelbox avatar dshimy avatar dxjones avatar eeroniemi avatar erikjohannessen avatar frittenkeez avatar kyleamathews avatar powdahound avatar soullivaneuh avatar thinkspill avatar zerkms avatar zsiddique avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hipchat-php's Issues

Cannot create users with '-' in email address

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

Wrong assumption about encoding

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?

Curl follow location error

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

message_format not supported?

Does this library support the message_format ? I tried adding it ... but still couldn't get @mentions to work....

[Request] archive_room() method and mass archive/delete.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.