| Copyright | (C) 2017- Mark Andrus Roberts |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Mark Andrus Roberts <[email protected]> |
| Stability | provisional |
| Safe Haskell | None |
| Language | Haskell98 |
Twilio.Calls
Contents
Description
Synopsis
- data Calls = Calls {}
- get :: MonadThrow m => TwilioT m Calls
- post :: MonadThrow m => PostCalls -> TwilioT m Call
- data PostCalls = PostCalls {
- from :: !Text
- to :: !Text
- urlOrApplicationSID :: !(Either URI ApplicationSID)
- method :: !(Maybe Text)
- fallbackURL :: !(Maybe URI)
- fallbackMethod :: !(Maybe Text)
- statusCallback :: !(Maybe URI)
- statusCallbackMethod :: !(Maybe Text)
- sendDigits :: !(Maybe Text)
- ifMachine :: !(Maybe IfMachine)
- timeout :: !(Maybe Integer)
- record :: !(Maybe Bool)
- data IfMachine
Resource
Constructors
| Calls | |
Fields | |
get :: MonadThrow m => TwilioT m Calls Source #
Get Calls.
For example, you can fetch the Calls resource in the IO monad as follows:
module Main where
import Control.Monad.IO.Class (liftIO)
import System.Environment (getEnv)
import Twilio.Calls as Calls
import Twilio.Types
-- | Print calls.
main :: IO ()
main = runTwilio' (getEnv "ACCOUNT_SID")
(getEnv "AUTH_TOKEN")
$ Calls.get >>= liftIO . printConstructors
| PostCalls | |
Fields
| |
Instances
| Bounded IfMachine Source # | |
| Enum IfMachine Source # | |
Defined in Twilio.Calls Methods succ :: IfMachine -> IfMachine # pred :: IfMachine -> IfMachine # fromEnum :: IfMachine -> Int # enumFrom :: IfMachine -> [IfMachine] # enumFromThen :: IfMachine -> IfMachine -> [IfMachine] # enumFromTo :: IfMachine -> IfMachine -> [IfMachine] # enumFromThenTo :: IfMachine -> IfMachine -> IfMachine -> [IfMachine] # | |
| Eq IfMachine Source # | |
| Ord IfMachine Source # | |
| Read IfMachine Source # | |
| Show IfMachine Source # | |
| ToJSON IfMachine Source # | |
Defined in Twilio.Calls | |
| FromJSON IfMachine Source # | |