Module

SmsApi

Package
purescript-smsapi
Repository
adamczykm/purescript-smsapi

#SmsApi Source

data SmsApi :: Type

Foreign type representing authenticated API

#MessageType Source

data MessageType

Data type representing different kinds of messages that Smsapi.pl can send. Read more at https://www.smsapi.pl/docs/#2-pojedynczy-sms

#authenticateOAuth Source

authenticateOAuth :: { accessToken :: String } -> Effect SmsApi

Returns authenticated api using OAuth access token.

#authenticateSimple Source

authenticateSimple :: { password :: String, user :: String } -> Aff SmsApi

Requests simple login with Basic auth using user and password.

#authenticateSimpleHashed Source

authenticateSimpleHashed :: { md5password :: String, user :: String } -> Aff SmsApi

Requests simple login with Basic auth using user and md5-hashed password.

#sendSms Source

sendSms :: { message :: String, msgType :: MessageType, to :: String } -> SmsApi -> Aff Unit

Requests simple sms send.

Modules
SmsApi