twilio-0.1.3.2: Twilio REST API library for Haskell

Safe HaskellNone
LanguageHaskell98

Twilio.Applications

Contents

Synopsis

Resource

get :: MonadThrow m => TwilioT m Applications Source #

Get the Applications for your account.

For example, you can fetch the Applications resource in the IO monad as follows:

module Main where

import Control.Monad.IO.Class (liftIO)
import System.Environment (getEnv)
import Twilio.Applications as Applications
import Twilio.Types

-- | Print applications.
main :: IO ()
main = runTwilio' (getEnv "ACCOUNT_SID")
                  (getEnv "AUTH_TOKEN")
     $ Applications.get >>= liftIO . print