Sha256: 9013f2a84a9120d3f44b25a9bb5050018da33b70eac9a0bc130b7aa6dd1687a3

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 KB

Contents

= kindling

Ruby wrapper for the 37 Signals Campfire API

== INSTALL:

	[sudo] gem install kindling
	
== Usage
To use the kindling gem you need

1. Api Token - An authentication token which you'll find on the "Edit my Campfire account" screen in Campfire (click the "Reveal authentication token for API" link)
2. Subdomain - The Subdomain name for your campfire account (i.e contrast if your campfire domain is http://contrast.campfirenow.com)
3. Room ID - The Room ID of the target room (best to get this from the url ie http://SUBDOMAIN.campfirenow.com/room/XXXXXX)

	campfire = Kindling::Campfire.new(API_TOKEN, SUBDOMAIN)
	
=== SSL
If using SSL pass true to the third parameter of the Kindling::Campfire constructor

	campfire = Kindling::Campfire.new(API_TOKEN, SUBDOMAIN, true)

=== Sending messages
	campfire.speak(ROOM_ID, 'my message')
	
==== Message Types
The speak method can take an optional third parameter MessageType

Supported message types are 
* "TextMessage" (default) : A regular chat message
* "SoundMessage" : plays a sound as determined by the message, which can be either “rimshot”, “crickets”, or “trombone”
* "TweetMessage" : The message must be Twitter status URL only

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kindling-1.0.1 README.rdoc