Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Simple gen_server client to send messages via messagepub
Erlang
branch: master
Failed to load latest commit information.
.gitignore first commit
README.md added author
messagepub.erl added author

README.md

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 messagepub.com

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

3) Compile messagepub.erl:

c(messagepub).

4) Start the gen_server with your API KEY:

messagepub:start_link("YOUR API KEY").

5) Send messages using the send method. It takes three arguments: the channel (aim, twitter, email, gchat, phone, sms), the address, and the message. See examples below:

messagepub:send("email","joe@example.com", "hello joe").
messagepub:send("twitter", "the_real_shaq", "hi shaq!").
messagepub:send("gchat", "example@gmail.com", "Hello friend").
messagepub:send("aim", "username", "Saying hi from erlang").
messagepub:send("sms", "1234567890", "Hi my SMS friend").
messagepub:send("phone", "1234567890", "Hello on the phone").
Something went wrong with that request. Please try again.