Simple gen_server client to send messages via messagepub
Erlang
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
messagepub.erl

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).
  1. Start the gen_server with your API KEY:
messagepub:start_link("YOUR API KEY").
  1. 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").