Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
type HipChatAPI = TokenAuth (SendMessage :<|> (CreateRoom :<|> (GetRoomStatistics :<|> (ViewUser :<|> (CreateWebhook :<|> (GetAllMembers :<|> (RoomAddonUIUpdate :<|> GenerateToken))))))) Source #
type GenerateToken = "v2" :> ("oauth" :> ("token" :> (ReqBody '[JSON] TokenRequest :> (BasicAuth "oauth" Int :> Post '[JSON] TokenResponse)))) Source #
type CreateRoom = "v2" :> ("room" :> (ReqBody '[JSON] CreateRoomRequest :> Post '[JSON] CreateRoomResponse)) 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 #