Skip to content
Failed to load latest commit information.
lib version 0.1 Feb 7, 2011
README.markdown added links to README Feb 7, 2011
imified_party.gemspec version 0.1 Feb 7, 2011

README.markdown

IMified Party

Wrapper for the IMified API, with real application authentication, using HTTParty.

What is IMified?

From the IMified.com website: "Easily IM enable your applications with one simple API. If you can create a web page, now you can easily create an interactive IM Bot."

About

This piece of code uses HTTParty for its magic. All IMified methods should be supported, but you may need to reference the IMified API docs to understand how they work.

For information on the underlying IMified API, visit http://www.imified.com/developers/api

Installation

gem install imified_party

Usage

require 'rubygems'
require 'imified_party'

USERNAME = '...'
PASSWORD = '...'
BOT_KEY  = '...'
USER_KEY = '...'

# For IM, updates your bot's extended status. For twitter, posts a status update.
im = Imified.new(USERNAME, PASSWORD, BOT_KEY)
response = im.update_status("your message", "twitter")

# receive user details for a bot user
response = im.get_user(USER_KEY)

# receive the user details for all users of a bot as well as a user count
response = im.get_all_users

# push a message to a bot user
response = im.send("your message", USER_KEY)
Something went wrong with that request. Please try again.