| Copyright | (C) 2018 Mark Andrus Roberts |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Mark Andrus Roberts <markandrusroberts@gmail.com> |
| Stability | provisional |
| Safe Haskell | None |
| Language | Haskell98 |
Text.XML.Twiml.Verbs.Gather
Description
The example in this file assumes
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE RecordWildCards #-}
import Prelude
import Control.Lens
import Data.Default
import Text.XML.Twiml
import qualified Text.XML.Twiml.Syntax as Twiml
For more information, refer to Twilio's TwiML Reference for <Gather>.
- gather :: (IsTwimlLike f Gather, Nest i In Gather) => GatherAttributes -> TwimlLike' VoiceVerbsF i Void -> TwimlLike f Gather ()
- data Gather
- data GatherF i a
- data GatherAttributes
Documentation
gather :: (IsTwimlLike f Gather, Nest i In Gather) => GatherAttributes -> TwimlLike' VoiceVerbsF i Void -> TwimlLike f Gather () Source #
Example:
>>>:{let example :: VoiceTwiml example = voiceResponse $ do gather (def & action .~ parseURL "/process_gather.php" & method .~ Just GET) $ do say "Please enter your account number, followed by the pound sign" def end say "We didn't receive any input. Goodbye!" def end where Twiml.Syntax{..} = def :}
>>>putStr $ show example<?xml version="1.0" encoding="UTF-8"?> <Response> <Gather action="/process_gather.php" method="GET"> <Say>Please enter your account number, followed by the pound sign</Say> </Gather> <Say>We didn't receive any input. Goodbye!</Say> </Response>
data GatherAttributes Source #
Instances