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' a = ChannelAuth :> ("v2" :> ("bot" :> ("profile" :> (Capture "userId" (Id User) :> Get '[JSON] a))))
- type GetProfile = GetProfile' Profile
- type GetGroupMemberProfile' a = ChannelAuth :> ("v2" :> ("bot" :> ("group" :> (Capture "groupId" (Id Group) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] a))))))
- type GetGroupMemberProfile = GetGroupMemberProfile' Profile
- type LeaveGroup = ChannelAuth :> ("v2" :> ("bot" :> ("group" :> (Capture "groupId" (Id Group) :> ("leave" :> PostNoContent '[JSON] NoContent)))))
- type GetRoomMemberProfile' a = ChannelAuth :> ("v2" :> ("bot" :> ("room" :> (Capture "roomId" (Id Room) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] a))))))
- type GetRoomMemberProfile = GetRoomMemberProfile' Profile
- type LeaveRoom = ChannelAuth :> ("v2" :> ("bot" :> ("room" :> (Capture "roomId" (Id Room) :> ("leave" :> PostNoContent '[JSON] NoContent)))))
- type ReplyMessage' a = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("reply" :> (ReqBody '[JSON] a :> PostNoContent '[JSON] NoContent)))))
- type ReplyMessage = ReplyMessage' ReplyMessageBody
- type PushMessage' a = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("push" :> (ReqBody '[JSON] a :> PostNoContent '[JSON] NoContent)))))
- type PushMessage = PushMessage' PushMessageBody
- type MulticastMessage' a = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("multicast" :> (ReqBody '[JSON] a :> PostNoContent '[JSON] NoContent)))))
- type MulticastMessage = MulticastMessage' MulticastMessageBody
- type GetContent = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> (Capture "messageId" MessageId :> ("content" :> Get '[OctetStream] ByteString)))))
- type GetContentStream = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> (Capture "messageId" MessageId :> ("content" :> StreamGet NoFraming OctetStream (SourceIO ByteString))))))
- type GetReplyMessageCount' a b = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("delivery" :> ("reply" :> (QueryParam' '[Required, Strict] "date" a :> Get '[JSON] b))))))
- type GetReplyMessageCount = GetReplyMessageCount' LineDate MessageCount
- type GetPushMessageCount' a b = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("delivery" :> ("push" :> (QueryParam' '[Required, Strict] "date" a :> Get '[JSON] b))))))
- type GetPushMessageCount = GetPushMessageCount' LineDate MessageCount
- type GetMulticastMessageCount' a b = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("delivery" :> ("multicast" :> (QueryParam' '[Required, Strict] "date" a :> Get '[JSON] b))))))
- type GetMulticastMessageCount = GetMulticastMessageCount' LineDate MessageCount
- type IssueLinkToken' a = ChannelAuth :> ("v2" :> ("bot" :> ("user" :> (Capture "userId" (Id User) :> ("linkToken" :> Get '[JSON] a)))))
- type IssueLinkToken = IssueLinkToken' LinkToken
- type IssueChannelToken' a b = ReqBody '[FormUrlEncoded] a :> ("v2" :> ("bot" :> ("oauth" :> ("accessToken" :> Post '[JSON] b))))
- type IssueChannelToken = IssueChannelToken' ClientCredentials ShortLivedChannelToken
- type RevokeChannelToken' a = ReqBody '[FormUrlEncoded] a :> ("v2" :> ("bot" :> ("oauth" :> ("revoke" :> PostNoContent '[JSON] NoContent))))
- type RevokeChannelToken = RevokeChannelToken' ChannelToken
Documentation
type ChannelAuth = AuthProtect "channel-access-token" Source #
Combinator for authenticating with the channel access token
type GetProfile' a = ChannelAuth :> ("v2" :> ("bot" :> ("profile" :> (Capture "userId" (Id User) :> Get '[JSON] a)))) Source #
type GetProfile = GetProfile' Profile Source #
type GetGroupMemberProfile' a = ChannelAuth :> ("v2" :> ("bot" :> ("group" :> (Capture "groupId" (Id Group) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] a)))))) Source #
type LeaveGroup = ChannelAuth :> ("v2" :> ("bot" :> ("group" :> (Capture "groupId" (Id Group) :> ("leave" :> PostNoContent '[JSON] NoContent))))) Source #
type GetRoomMemberProfile' a = ChannelAuth :> ("v2" :> ("bot" :> ("room" :> (Capture "roomId" (Id Room) :> ("member" :> (Capture "userId" (Id User) :> Get '[JSON] a)))))) Source #
type LeaveRoom = ChannelAuth :> ("v2" :> ("bot" :> ("room" :> (Capture "roomId" (Id Room) :> ("leave" :> PostNoContent '[JSON] NoContent))))) Source #
type ReplyMessage' a = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("reply" :> (ReqBody '[JSON] a :> PostNoContent '[JSON] NoContent))))) Source #
type PushMessage' a = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("push" :> (ReqBody '[JSON] a :> PostNoContent '[JSON] NoContent))))) Source #
type MulticastMessage' a = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("multicast" :> (ReqBody '[JSON] a :> PostNoContent '[JSON] NoContent))))) Source #
type GetContent = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> (Capture "messageId" MessageId :> ("content" :> Get '[OctetStream] ByteString))))) Source #
type GetContentStream = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> (Capture "messageId" MessageId :> ("content" :> StreamGet NoFraming OctetStream (SourceIO ByteString)))))) Source #
type GetReplyMessageCount' a b = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("delivery" :> ("reply" :> (QueryParam' '[Required, Strict] "date" a :> Get '[JSON] b)))))) Source #
type GetPushMessageCount' a b = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("delivery" :> ("push" :> (QueryParam' '[Required, Strict] "date" a :> Get '[JSON] b)))))) Source #
type GetMulticastMessageCount' a b = ChannelAuth :> ("v2" :> ("bot" :> ("message" :> ("delivery" :> ("multicast" :> (QueryParam' '[Required, Strict] "date" a :> Get '[JSON] b)))))) Source #
type IssueLinkToken' a = ChannelAuth :> ("v2" :> ("bot" :> ("user" :> (Capture "userId" (Id User) :> ("linkToken" :> Get '[JSON] a))))) Source #
type IssueChannelToken' a b = ReqBody '[FormUrlEncoded] a :> ("v2" :> ("bot" :> ("oauth" :> ("accessToken" :> Post '[JSON] b)))) Source #
type RevokeChannelToken' a = ReqBody '[FormUrlEncoded] a :> ("v2" :> ("bot" :> ("oauth" :> ("revoke" :> PostNoContent '[JSON] NoContent)))) Source #