textocat-api-0.1.0.0: Unofficial Haskell SDK for Textocat API -- http://textocat.com

Safe HaskellNone
LanguageHaskell2010

Network.Textocat.Internal

Synopsis

Documentation

makeConn

Arguments

:: FromJSON b 
=> Config

API config

-> String

URL endpoint

-> StdMethod

HTTP method

-> ByteString

parameter name; "body" means send in request body

-> [ByteString]

parameter values

-> IO (Either ErrorMsg b) 

Make call to API endpoint, send parameter and get answer

checkServiceStatus

Arguments

:: Config

Config

-> IO ServiceStatus 

Check service status. We cannot do it usual way by calling makeConn