Skip to content
This repository has been archived by the owner on Oct 12, 2019. It is now read-only.

Commit

Permalink
Added license; fixed the README for code syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaigle committed Apr 29, 2010
1 parent b6d7870 commit 73d91ca
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) <year> <copyright holders>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
12 changes: 6 additions & 6 deletions README.md
Expand Up @@ -5,14 +5,14 @@ This is just the first version of my copy of the HipChat API. I'm not sure I'm

The simple way to use this is as follows:

hipchat = Hipchat::Base.new("yourAPIcode")
hipchat = Hipchat::Base.new("yourAPIcode")

rooms = hipchat.rooms
rooms = hipchat.rooms

main_room = rooms.first
main_room = rooms.first

main_room.speak("Bot Name", "This is a simple message")
main_room.speak("Bot Name", "This is a simple message")

users = main_room.users # => Returns a the users in the room
users = main_room.users # => Returns a the users in the room

users.first.profile # => Returns the special information about the user
users.first.profile # => Returns the special information about the user

0 comments on commit 73d91ca

Please sign in to comment.