twilio-0.3.0.0: Twilio REST API library for Haskell

Copyright(C) 2017- Mark Andrus Roberts
LicenseBSD-style (see the file LICENSE)
MaintainerMark Andrus Roberts <markandrusroberts@gmail.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

Twilio.Call

Contents

Description

 

Synopsis

Resource

data Call #

Instances

Eq Call # 

Methods

(==) :: Call -> Call -> Bool #

(/=) :: Call -> Call -> Bool #

Show Call # 

Methods

showsPrec :: Int -> Call -> ShowS #

show :: Call -> String #

showList :: [Call] -> ShowS #

FromJSON Call # 

Methods

parseJSON :: Value -> Parser Call

parseJSONList :: Value -> Parser [Call]

List Calls Call # 
Post1 PostCalls Call # 

Methods

post1 :: MonadThrow m => PostCalls -> TwilioT m Call #

Get1 CallSID Call # 

Methods

get1 :: MonadThrow m => CallSID -> TwilioT m Call #

data CallSID #

Instances

Bounded CallSID # 
Eq CallSID # 

Methods

(==) :: CallSID -> CallSID -> Bool #

(/=) :: CallSID -> CallSID -> Bool #

Data CallSID # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CallSID -> c CallSID #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CallSID #

toConstr :: CallSID -> Constr #

dataTypeOf :: CallSID -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CallSID) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CallSID) #

gmapT :: (forall b. Data b => b -> b) -> CallSID -> CallSID #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CallSID -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CallSID -> r #

gmapQ :: (forall d. Data d => d -> u) -> CallSID -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CallSID -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CallSID -> m CallSID #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CallSID -> m CallSID #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CallSID -> m CallSID #

Ord CallSID # 
Read CallSID # 
Show CallSID # 
Ix CallSID # 
IsString CallSID # 

Methods

fromString :: String -> CallSID #

Generic CallSID # 

Associated Types

type Rep CallSID :: * -> * #

Methods

from :: CallSID -> Rep CallSID x #

to :: Rep CallSID x -> CallSID #

NFData CallSID # 

Methods

rnf :: CallSID -> () #

ToJSON CallSID # 

Methods

toJSON :: CallSID -> Value

toEncoding :: CallSID -> Encoding

toJSONList :: [CallSID] -> Value

toEncodingList :: [CallSID] -> Encoding

FromJSON CallSID # 

Methods

parseJSON :: Value -> Parser CallSID

parseJSONList :: Value -> Parser [CallSID]

Hashable CallSID # 

Methods

hashWithSalt :: Int -> CallSID -> Int

hash :: CallSID -> Int

IsSID CallSID # 

Methods

getSID :: CallSID -> Text #

parseSID :: Text -> Maybe CallSID #

Get1 CallSID Call # 

Methods

get1 :: MonadThrow m => CallSID -> TwilioT m Call #

Get1 CallSID Feedback # 

Methods

get1 :: MonadThrow m => CallSID -> TwilioT m Feedback #

Get2 ConferenceSID CallSID Participant # 

Methods

get2 :: MonadThrow m => ConferenceSID -> CallSID -> TwilioT m Participant #

Get2 QueueSID CallSID Member # 

Methods

get2 :: MonadThrow m => QueueSID -> CallSID -> TwilioT m Member #

type Rep CallSID # 
type Rep CallSID = D1 (MetaData "CallSID" "Twilio.Types.SIDs" "twilio-0.3.0.0-5MJriwViwXZ5B3Ok1irAlv" True) (C1 (MetaCons "CallSID" PrefixI True) (S1 (MetaSel (Just Symbol "getCallSID") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (SID C A))))

get :: MonadThrow m => CallSID -> TwilioT m Call #

Get a Call by CallSID.

Types

data AnsweredBy #

Constructors

Human 
Machine 

Instances

Eq AnsweredBy # 
Show AnsweredBy # 
FromJSON AnsweredBy # 

Methods

parseJSON :: Value -> Parser AnsweredBy

parseJSONList :: Value -> Parser [AnsweredBy]