| Copyright | (C) 2014-15 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.Sms
Description
The example in this file assumes
{-# LANGUAGE RebindableSyntax #-}
{-# LANGUAGE RecordWildCards #-}
import Prelude
import Text.XML.Twiml
import qualified Text.XML.Twiml.Syntax as Twiml
For more information, refer to Twilio's TwiML Reference for <Sms>.
- sms :: IsTwimlLike f Sms => String -> SmsAttributes -> TwimlLike f Sms ()
- data Sms
- data SmsF i a
- data SmsAttributes
Documentation
sms :: IsTwimlLike f Sms => String -> SmsAttributes -> TwimlLike f Sms ()
Example:
example :: VoiceTwiml
example =
response $ do
say "Our store is located at 123 Easy St." def
sms "Store Location: 123 Easy St." $ def
& action .~ parseURL "/smsHandler.php"
& method .~ Just POST
end
where Twiml.Syntax{..} = def>>>show example<?xml version="1.0" encoding="UTF-8"?> <Response> <Say>Our store is located at 123 Easy St.</Say> <Sms action="/smsHandler.php" method="POST">Store Location: 123 Easy St.</Sms> </Response>
data Sms
data SmsF i a
data SmsAttributes
Instances