Safe Haskell | None |
---|---|
Language | Haskell98 |
- 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
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 . print
PostCalls | |
|