Copyright | (C) 2017- Mark Andrus Roberts |
---|---|
License | BSD-style (see the file LICENSE) |
Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
Stability | provisional |
Safe Haskell | None |
Language | Haskell98 |
Synopsis
- data Applications = Applications {}
- get :: MonadThrow m => TwilioT m Applications
Resource
data Applications Source #
Instances
Eq Applications Source # | |
Defined in Twilio.Applications (==) :: Applications -> Applications -> Bool # (/=) :: Applications -> Applications -> Bool # | |
Show Applications Source # | |
Defined in Twilio.Applications showsPrec :: Int -> Applications -> ShowS # show :: Applications -> String # showList :: [Applications] -> ShowS # | |
FromJSON Applications Source # | |
Defined in Twilio.Applications parseJSON :: Value -> Parser Applications # parseJSONList :: Value -> Parser [Applications] # | |
Get0 Applications Source # | |
Defined in Twilio.Applications get0 :: MonadThrow m => TwilioT m Applications Source # | |
List Applications Application Source # | |
Defined in Twilio.Applications getListWrapper :: Wrapper (Maybe PagingInformation -> [Application] -> Applications) Source # getList :: Applications -> [Application] Source # getPlural :: Const Text (Applications, Application) Source # |
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