join-api-0.0.0.0: Bindings for Join push notifications

Safe HaskellNone
LanguageHaskell2010

Network.Join

Synopsis

Documentation

newtype APIKey Source #

API Key for the account

Constructors

APIKey 

Fields

newtype DeviceId Source #

Device ID to send the message to/through

Constructors

DeviceId 

Fields

data SMS Source #

SMS Message with phone number to send the message to

Constructors

SMS 

Fields

Instances

Eq SMS Source # 

Methods

(==) :: SMS -> SMS -> Bool #

(/=) :: SMS -> SMS -> Bool #

Ord SMS Source # 

Methods

compare :: SMS -> SMS -> Ordering #

(<) :: SMS -> SMS -> Bool #

(<=) :: SMS -> SMS -> Bool #

(>) :: SMS -> SMS -> Bool #

(>=) :: SMS -> SMS -> Bool #

max :: SMS -> SMS -> SMS #

min :: SMS -> SMS -> SMS #

Show SMS Source # 

Methods

showsPrec :: Int -> SMS -> ShowS #

show :: SMS -> String #

showList :: [SMS] -> ShowS #

sendSMS :: APIKey -> DeviceId -> SMS -> IO JoinResponse Source #

Send an SMS from the given device. If the device doesn't allow join to send SMS, there will be an error in the response

sendPush :: APIKey -> DeviceId -> Text -> IO JoinResponse Source #

Send a push notification to a given device