Copyright | (c) Alexandre Moreno 2019 |
---|---|
License | BSD3 |
Maintainer | alexmorenocano@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- type ChannelAuth = AuthProtect "channel-access-token"
- type GetProfile = ChannelAuth :> ("profile" :> (Capture "userId" (Id User) :> Get '[JSON] Profile))
- type GetGroupMemberProfile = ChannelAuth :> ("group" :> (Capture "groupId" (Id Group) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] Profile))))
- type LeaveGroup = ChannelAuth :> ("group" :> (Capture "groupId" (Id Group) :> ("leave" :> PostNoContent '[JSON] NoContent)))
- type GetRoomMemberProfile = ChannelAuth :> ("room" :> (Capture "roomId" (Id Room) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] Profile))))
- type LeaveRoom = ChannelAuth :> ("room" :> (Capture "roomId" (Id Room) :> ("leave" :> PostNoContent '[JSON] NoContent)))
- type ReplyMessage = ChannelAuth :> (ReqBody '[JSON] ReplyMessageBody :> ("message" :> ("reply" :> PostNoContent '[JSON] NoContent)))
- type PushMessage = ChannelAuth :> (ReqBody '[JSON] PushMessageBody :> ("message" :> ("push" :> PostNoContent '[JSON] NoContent)))
- type MulticastMessage = ChannelAuth :> (ReqBody '[JSON] MulticastMessageBody :> ("message" :> ("multicast" :> PostNoContent '[JSON] NoContent)))
- type GetContent = ChannelAuth :> ("message" :> (Capture "messageId" MessageId :> ("content" :> Get '[OctetStream] ByteString)))
- type GetReplyMessageCount = ChannelAuth :> ("message" :> ("delivery" :> ("reply" :> (QueryParam' '[Required, Strict] "date" LineDate :> Get '[JSON] MessageCount))))
- type GetPushMessageCount = ChannelAuth :> ("message" :> ("delivery" :> ("push" :> (QueryParam' '[Required, Strict] "date" LineDate :> Get '[JSON] MessageCount))))
- type GetMulticastMessageCount = ChannelAuth :> ("message" :> ("delivery" :> ("multicast" :> (QueryParam' '[Required, Strict] "date" LineDate :> Get '[JSON] MessageCount))))
- type IssueLinkToken = ChannelAuth :> ("user" :> (Capture "userId" (Id User) :> ("linkToken" :> Get '[JSON] LinkToken)))
- type IssueChannelToken = ReqBody '[FormUrlEncoded] ClientCredentials :> ("oauth" :> ("accessToken" :> Post '[JSON] ShortLivedChannelToken))
- type RevokeChannelToken = ReqBody '[FormUrlEncoded] ChannelToken :> ("oauth" :> ("revoke" :> PostNoContent '[JSON] NoContent))
- type Endpoints = "v2" :> ("bot" :> (GetProfile :<|> (GetGroupMemberProfile :<|> (LeaveGroup :<|> (GetRoomMemberProfile :<|> (LeaveRoom :<|> (ReplyMessage :<|> (PushMessage :<|> (MulticastMessage :<|> (GetContent :<|> (GetReplyMessageCount :<|> (GetPushMessageCount :<|> (GetMulticastMessageCount :<|> (IssueLinkToken :<|> (IssueChannelToken :<|> RevokeChannelToken)))))))))))))))
Documentation
type ChannelAuth = AuthProtect "channel-access-token" Source #
Combinator for authenticating with the channel access token
type GetProfile = ChannelAuth :> ("profile" :> (Capture "userId" (Id User) :> Get '[JSON] Profile)) Source #
type GetGroupMemberProfile = ChannelAuth :> ("group" :> (Capture "groupId" (Id Group) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] Profile)))) Source #
type LeaveGroup = ChannelAuth :> ("group" :> (Capture "groupId" (Id Group) :> ("leave" :> PostNoContent '[JSON] NoContent))) Source #
type GetRoomMemberProfile = ChannelAuth :> ("room" :> (Capture "roomId" (Id Room) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] Profile)))) Source #
type LeaveRoom = ChannelAuth :> ("room" :> (Capture "roomId" (Id Room) :> ("leave" :> PostNoContent '[JSON] NoContent))) Source #
type ReplyMessage = ChannelAuth :> (ReqBody '[JSON] ReplyMessageBody :> ("message" :> ("reply" :> PostNoContent '[JSON] NoContent))) Source #
type PushMessage = ChannelAuth :> (ReqBody '[JSON] PushMessageBody :> ("message" :> ("push" :> PostNoContent '[JSON] NoContent))) Source #
type MulticastMessage = ChannelAuth :> (ReqBody '[JSON] MulticastMessageBody :> ("message" :> ("multicast" :> PostNoContent '[JSON] NoContent))) Source #
type GetContent = ChannelAuth :> ("message" :> (Capture "messageId" MessageId :> ("content" :> Get '[OctetStream] ByteString))) Source #
type GetReplyMessageCount = ChannelAuth :> ("message" :> ("delivery" :> ("reply" :> (QueryParam' '[Required, Strict] "date" LineDate :> Get '[JSON] MessageCount)))) Source #
type GetPushMessageCount = ChannelAuth :> ("message" :> ("delivery" :> ("push" :> (QueryParam' '[Required, Strict] "date" LineDate :> Get '[JSON] MessageCount)))) Source #
type GetMulticastMessageCount = ChannelAuth :> ("message" :> ("delivery" :> ("multicast" :> (QueryParam' '[Required, Strict] "date" LineDate :> Get '[JSON] MessageCount)))) Source #
type IssueLinkToken = ChannelAuth :> ("user" :> (Capture "userId" (Id User) :> ("linkToken" :> Get '[JSON] LinkToken))) Source #
type IssueChannelToken = ReqBody '[FormUrlEncoded] ClientCredentials :> ("oauth" :> ("accessToken" :> Post '[JSON] ShortLivedChannelToken)) Source #
type RevokeChannelToken = ReqBody '[FormUrlEncoded] ChannelToken :> ("oauth" :> ("revoke" :> PostNoContent '[JSON] NoContent)) Source #
type Endpoints = "v2" :> ("bot" :> (GetProfile :<|> (GetGroupMemberProfile :<|> (LeaveGroup :<|> (GetRoomMemberProfile :<|> (LeaveRoom :<|> (ReplyMessage :<|> (PushMessage :<|> (MulticastMessage :<|> (GetContent :<|> (GetReplyMessageCount :<|> (GetPushMessageCount :<|> (GetMulticastMessageCount :<|> (IssueLinkToken :<|> (IssueChannelToken :<|> RevokeChannelToken))))))))))))))) Source #