chatwork-0.1.3.5: The ChatWork API in Haskell

Safe HaskellNone
LanguageHaskell2010

ChatWork.Endpoints.Rooms

Contents

Description

Synopsis

Room

getRoom :: (MonadHttp m, Client c) => c -> Int -> m (ChatWorkResponse RoomDetail) Source #

argumrnt Int is room_id.

updateRoom :: (MonadHttp m, Client c) => c -> Int -> UpdateRoomParams -> m (ChatWorkResponse RoomIdWrap) Source #

argumrnt Int is room_id.

deleteRoom :: (MonadHttp m, Client c) => c -> Int -> m (ChatWorkResponse ()) Source #

wrap deleteRoom' function, using DeleteRoom. argumrnt Int is room_id.

leaveRoom :: (MonadHttp m, Client c) => c -> Int -> m (ChatWorkResponse ()) Source #

wrap deleteRoom' function, using LeaveRoom. argumrnt Int is room_id.

deleteRoom' :: (MonadHttp m, Client c) => c -> Int -> DeleteRoomActionType -> m (ChatWorkResponse ()) Source #

argumrnt Int is room_id.

Room Member

getMembers :: (MonadHttp m, Client c) => c -> Int -> m (ChatWorkResponse Members) Source #

argumrnt Int is room_id.

Room Message

getMessages :: (MonadHttp m, Client c) => c -> Int -> Maybe Force -> m (ChatWorkResponse Messages) Source #

argumrnt Int is room_id.

postMessage :: (MonadHttp m, Client c) => c -> Int -> MessageBody -> m (ChatWorkResponse MessageIdWrap) Source #

argumrnt Int is room_id.

getMessage :: (MonadHttp m, Client c) => c -> Int -> Text -> m (ChatWorkResponse Message) Source #

argumrnt Int is room_id. argumrnt Text is message_id.

Room Task

getRoomTasks :: (MonadHttp m, Client c) => c -> Int -> GetTasksParams -> m (ChatWorkResponse RoomTasks) Source #

argumrnt Int is room_id.

createTask :: (MonadHttp m, Client c) => c -> Int -> CreateTaskParams -> m (ChatWorkResponse TaskIdsWrap) Source #

argumrnt Int is room_id.

getRoomTask :: (MonadHttp m, Client c) => c -> Int -> Int -> m (ChatWorkResponse RoomTask) Source #

argumrnt first Int is room_id. argumrnt second Int is task_id.

Room File

getFiles :: (MonadHttp m, Client c) => c -> Int -> Maybe AccountId -> m (ChatWorkResponse Files) Source #

argumrnt Int is room_id.

getFile :: (MonadHttp m, Client c) => c -> Int -> Int -> Maybe CreateUrlFlag -> m (ChatWorkResponse File) Source #

argumrnt first Int is room_id. argumrnt second Int is file_id.