twilio-0.1.3.2: Twilio REST API library for Haskell

Safe HaskellNone
LanguageHaskell98

Twilio.Calls

Contents

Synopsis

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

data IfMachine Source #

Constructors

Continue 
Hangup 

Instances

Orphan instances