hipchat-hs-0.0.4: Hipchat API bindings in Haskell

Safe HaskellNone
LanguageHaskell2010

HipChat.Types.API

Documentation

type GenerateToken = "v2" :> ("oauth" :> ("token" :> (ReqBody '[JSON] TokenRequest :> (BasicAuth "oauth" Int :> Post '[JSON] TokenResponse)))) Source #

type ViewUser = "v2" :> ("user" :> (Capture "id_or_email" Text :> Get '[JSON] User)) Source #

type CreateWebhook = "v2" :> ("room" :> (Capture "room_id_or_name" IdOrName :> ("extension" :> ("webhook" :> (Capture "key" WebhookKey :> (ReqBody '[JSON] CreateWebhookRequest :> Put '[JSON] CreateWebhookResponse)))))) Source #

type SendMessage = "v2" :> ("room" :> (Capture "room" Text :> ("message" :> (ReqBody '[JSON] Message :> Post '[JSON] SendMessageResponse)))) Source #

type GetRoomStatistics = "v2" :> ("room" :> (Capture "room" Text :> ("statistics" :> Get '[JSON] RoomStatistics))) Source #

type GetAllMembers = "v2" :> ("room" :> (Capture "room_id_or_name" IdOrName :> ("member" :> (QueryParam "start-index" Int :> (QueryParam "max-results" Int :> Get '[JSON] GetAllMembersResponse))))) Source #

type GetAllRooms = "v2" :> ("room" :> (QueryParam "start-index" Int :> (QueryParam "max-results" Int :> (QueryParam "include-private" Bool :> (QueryParam "include-archived" Bool :> Get '[JSON] GetAllRoomsResponse))))) Source #

type RoomAddonUIUpdate = "v2" :> ("addon" :> ("ui" :> ("room" :> (Capture "room_id" Int :> (ReqBody '[JSON] RoomAddonUIUpdateRequest :> PostNoContent '[JSON] NoContent))))) Source #