line-bot-sdk-0.4.0.0: Haskell SDK for LINE Messaging API

Copyright(c) Alexandre Moreno 2019
LicenseBSD3
Maintaineralexmorenocano@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Line.Bot.Endpoints

Description

 
Synopsis

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 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 #