<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>farp.blog &#187; happycampfire</title>
	<atom:link href="http://fredandrandall.com/blog/tag/happycampfire/feed/" rel="self" type="application/rss+xml" />
	<link>http://fredandrandall.com/blog</link>
	<description>Bloggin&#039; about whatever</description>
	<lastBuildDate>Tue, 04 Nov 2014 07:15:30 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>Introducing: HappyCampfire, a Campfire framework for OS X and iOS</title>
		<link>http://fredandrandall.com/blog/2011/10/02/introducing-happycampfire-a-campfire-framework-for-os-x-and-ios/</link>
		<comments>http://fredandrandall.com/blog/2011/10/02/introducing-happycampfire-a-campfire-framework-for-os-x-and-ios/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 02:04:26 +0000</pubDate>
		<dc:creator><![CDATA[Randall]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Cocoa]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[happycampfire]]></category>
		<category><![CDATA[happycampr]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://fredandrandall.com/blog/?p=548</guid>
		<description><![CDATA[One of my favorite tools that I use at work is Campfire. If you haven&#8217;t heard of Campfire, it&#8217;s a group chat web app built by 37 signals. It&#8217;s very easy to use and has some fun features. One day &#8230; <a href="http://fredandrandall.com/blog/2011/10/02/introducing-happycampfire-a-campfire-framework-for-os-x-and-ios/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><a href="http://fredandrandall.com/blog/wp-content/uploads/2011/10/campfirelogo.png"><img class="alignleft size-medium wp-image-609" title="campfirelogo" src="http://fredandrandall.com/blog/wp-content/uploads/2011/10/campfirelogo-300x248.png" alt="" width="300" height="248" /></a>One of my favorite tools that I use at work is <a href="http://campfirenow.com/">Campfire</a>. If you haven&#8217;t heard of Campfire, it&#8217;s a group chat web app built by 37 signals. It&#8217;s very easy to use and has some fun features. One day I started playing around with the Campfire API to see what could be done and from that came the app I&#8217;m working on called HappyCampr. From that app, came the framework HappyCampfire.</p>
<p><a href="https://github.com/blladnar/HappyCamprFramework">HappyCampfire</a> is an objective-c wrapper around most of the Campfire API. It has model objects like users, messages, and rooms. It should allow anyone familiar with Cocoa programming to get right to work on using the Campfire API. It is designed to work on both OS X and iOS but most of the work/testing has been on OS X.</p>
<p>I wanted to put this out there to help people make good innovative uses of Campfire, without having to deal with too many of the nitty gritty details. It&#8217;s definitely still a bit of a work in progress so feel free to fork it and send me a pull request if want to fix/add anything.<span id="more-548"></span></p>
<p>The framework is designed to be asynchronous and uses <a href="http://allseeing-i.com/ASIHTTPRequest/">ASIHTTPRequest</a> for the network communication. It also allows you to make use of Campfire&#8217;s streaming API to get message updates. The project includes a test app for OS X that will let you test all of the different parts of the framework.</p>
<p>To get started you&#8217;ll create an object like this</p>
<pre class="brush: objc; title: ; notranslate">
campfire = [[HappyCampfire alloc] initWithCampfireURL:@&quot;https://YOUR_CAMPFIRE_URL.campfirenow.com&quot;];
campfire.authToken = @&quot;YOUR_AUTH_TOKEN&quot;;

[campfire sendText:@&quot;Hello World&quot; toRoom:@&quot;ROOM_NUM&quot; completionHandler:^(HCMessage *message, NSError *error){

   NSLog(@&quot;%@&quot;, message);

}];
</pre>
<p>If you&#8217;re interested in using the streaming API that&#8217;s really easy too.</p>
<pre class="brush: objc; title: ; notranslate">

campfire.delegate = self;
[campfire startListeningForMessagesInRoom:@&quot;ROOM_NUMBER&quot;];

// Then you'll implement the CampfireResponseProtocol
-(void)messageReceived:(HCMessage *)message
{
   NSLog(@&quot;Message: %@&quot;, message);
}
</pre>
<p><a href="https://github.com/blladnar/HappyCamprFramework/">Check it out on GitHub</a></p>
]]></content:encoded>
			<wfw:commentRss>http://fredandrandall.com/blog/2011/10/02/introducing-happycampfire-a-campfire-framework-for-os-x-and-ios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
