Skip to content
Simple gen_server client to send messages via messagepub
Pull request Compare This branch is 6 commits ahead of luccastera:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

This is a simple gen_server node to send messages on AIM, Google Chat, Email, SMS, or Twitter using messagepub.

It is very easy to use:

1) Sign up for an account at

2) Once you've signed up, get your API key by going to your Account Settings at

3) Compile messagepub.erl. Don't forget to rr("messagepub.hrl") for records if in shell.


4) Start the gen_server with your API KEY:

messagepub:start_link("YOUR API KEY").

5) Build a list of recipients you wish to send to. Order of recipients is used as the position in messagepub.

Recipients = [messagepub:email_recipient(""), messagepub:sms_recipient("123456789")].

Available helpers for building recipients are twitter_recipient/1, gchat_recipient/1, aim_recipient/1, email_recipient/1, sms_recipient/1, phone_recipient/1.

6) Build and send your notification:

Notification = messagepub:new_notification("Your message here!", Recipients).

Supported calls to api through: create/1, view/0, get_notification/1, cancel/1, replies/0

Something went wrong with that request. Please try again.