twilio-0.3.0.0: Twilio REST API library for Haskell

Copyright(C) 2017- Mark Andrus Roberts
LicenseBSD-style (see the file LICENSE)
MaintainerMark Andrus Roberts <markandrusroberts@gmail.com>
Stabilityprovisional
Safe HaskellNone
LanguageHaskell98

Twilio.APIKeys

Contents

Description

 

Synopsis

Resource

data APIKeys #

Constructors

APIKeys 

Instances

Eq APIKeys # 

Methods

(==) :: APIKeys -> APIKeys -> Bool #

(/=) :: APIKeys -> APIKeys -> Bool #

Ord APIKeys # 
Show APIKeys # 
FromJSON APIKeys # 

Methods

parseJSON :: Value -> Parser APIKeys

parseJSONList :: Value -> Parser [APIKeys]

Get0 APIKeys # 

Methods

get0 :: MonadThrow m => TwilioT m APIKeys #

List APIKeys APIKey # 

get :: MonadThrow m => TwilioT m APIKeys #

Get APIKeys.

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

module Main where

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

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