The smsaero package

[Tags:bsd3, library]

Please see README.md


[Skip to Readme]

Properties

Versions 0.1, 0.1.1, 0.2, 0.3, 0.4, 0.4.1, 0.5, 0.6, 0.6.1, 0.6.2, 0.7, 0.7.1
Change log CHANGELOG.md
Dependencies aeson, base (==4.9.*), containers, http-api-data (>=0.2.3), http-client, servant (>=0.9), servant-client, servant-docs, text, time [details]
License BSD3
Copyright (c) 2015-2016, GetShopTV
Author Nickolay Kudasov
Maintainer nickolay@getshoptv.com
Category Web
Home page https://github.com/GetShopTV/smsaero
Source repository head: git clone https://github.com/GetShopTV/smsaero.git
Uploaded Fri Dec 9 10:50:56 UTC 2016 by NickolayKudasov
Distributions NixOS:0.7.1
Downloads 754 total (21 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2016-12-09 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for smsaero

Readme for smsaero-0.7.1

smsaero

Hackage Build Status

SMSAero API and HTTP client based on servant library.

Documentation

Library documentation is available on Hackage.

The original SMSAero API documentation (in Russian) is available here.

API documentation in English can be generated using pandoc:

$ stack exec pandoc --filter=docs/api-filter.hs -o docs/api.md api-intro.md

Note that you can generate this documentation in any format that pandoc supports (e.g. HTML, LaTeX, Markdown, etc.).

Usage

Import SMSAero and Control.Monad.Trans.Either module to interact with SMSAero:

>>> :s -XOverloadedStrings
>>> import SMSAero
>>> import Control.Monad.Trans.Either
>>> let credentials = SMSAeroAuth "user@example.com" "md5-password-hash"
>>> runEitherT $ smsAeroBalance credentials
Right (ResponseOK (BalanceResponse 10.0))

Contributing

Contributions and bug reports are welcome!

GetShopTV Team