| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.Api.TextLocal
- data Credential
- createApiKey :: ByteString -> Credential
- createUserHash :: ByteString -> ByteString -> Credential
- data SMSSettings
- defaultSMSSettings :: SMSSettings
- setManager :: Manager -> SMSSettings -> SMSSettings
- setDestinationNumber :: [ByteString] -> SMSSettings -> SMSSettings
- setMessage :: ByteString -> SMSSettings -> SMSSettings
- setAuth :: Credential -> SMSSettings -> SMSSettings
- runSettings :: Command -> SMSSettings -> IO (Either JSONException TLResponse)
- sendSMS :: ByteString -> [ByteString] -> Credential -> IO (Either JSONException TLResponse)
Documentation
data Credential Source #
Credential for making request to textLocal server.
createApiKey :: ByteString -> Credential Source #
Create Credential for textLocal.
createUserHash :: ByteString -> ByteString -> Credential Source #
data SMSSettings Source #
defaultSMSSettings :: SMSSettings Source #
defaultSMSSettings has the default settings, duh! The
settingsSender has a value of TXTLCL. The accessors
settingsMessage, settingsAuth, settingsNumber contains a
value of bottom. They have to be initialized to a proper value
before sending SMS.
setManager :: Manager -> SMSSettings -> SMSSettings Source #
Use an existing manager instead of creating a new one
setDestinationNumber :: [ByteString] -> SMSSettings -> SMSSettings Source #
setMessage :: ByteString -> SMSSettings -> SMSSettings Source #
setAuth :: Credential -> SMSSettings -> SMSSettings Source #
runSettings :: Command -> SMSSettings -> IO (Either JSONException TLResponse) Source #
Arguments
| :: ByteString | Text to send |
| -> [ByteString] | Destination numbers |
| -> Credential | |
| -> IO (Either JSONException TLResponse) |