Skip to content

serverscom/elixir-hipchat

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hipchat

A hipcaht API library for elixir

  • This is a WIP and not all the functionalaity is here

Issues

  • for some reason it double posts the message when private message to a user

What you will need:

  • you personal token here

Usage

client  = Hipchat.configure([token: "personal_token"]) #=> [token: "1234"]

Send a message to a room

client |> Hipchat.Rooms.message([room_id: "test", message: "this is a test message", message_format: "text"])

OR

Hipchat.Rooms.message(client, [room_id: "test", message: "this is a test message", message_format: "text"])

Find a room

client |> Hipchat.Rooms.find("test")

Find a user

client |> Hipchat.Users.find("@foo")

Send a private message to a user

client |> Hipchat.Users.message([user_id: "@foo", message: "what's up!"])

Fetch a list of all the rooms

client |> Hipchat.Rooms.all

Fetch all the users

client |> Hipchat.Users.all

About

A Hipchat binding for elixir

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%