<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<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>phreadz &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/phreadz/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Mon, 30 Dec 2024 07:18:50 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>phreadz &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Integrating AudioBoo and Phreadz with Dabr]]></title>
		<link>https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/</link>
					<comments>https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 14:33:58 +0000</pubDate>
				<category><![CDATA[mobile]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[audioboo]]></category>
		<category><![CDATA[dabr]]></category>
		<category><![CDATA[phreadz]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=1492</guid>

					<description><![CDATA[A quick explanation of how I integrated AudioBoo and Phreadz with Dabr.  I&#039;m a big fan of AudioBoo - for those who don&#039;t know it,  AudioBoo allows you to record some audio on your phone and then publish it to the web.  It&#039;s like instant podcasting.  Originally only for the iPhone, AudioBoo now works on Android and there&#039;s an S60 version comeing out &#34;soon&#34;.  I&#039;m very proud to announce that as of r2…]]></description>
										<content:encoded><![CDATA[<p>A quick explanation of how I integrated AudioBoo and Phreadz with Dabr.</p>

<p>I'm a big fan of <a href="http://audioboo.fm/">AudioBoo</a> - for those who don't know it,&nbsp; AudioBoo allows you to record some audio on your phone and then publish it to the web.&nbsp; It's like instant podcasting.&nbsp; Originally only for the iPhone, AudioBoo now works on Android and there's an S60 version comeing out "soon".</p>

<p>I'm very proud to announce that as of <a href="http://code.google.com/p/dabr/source/detail?r=260">r260</a> - Dabr now support AudioBoo!</p>

<p>It all started with a tweet from David Carrington (creator of Dabr) asking how one would go about linking directly to a tweeted 'boo.</p>

<p>So - how do I turn a tweeted 'boo like <code>http://boo.fm/b73803</code> to the associated MP3 of <code>http://audioboo.fm/boos/73803-rockbandboo.mp3</code>?</p>

<h2 id="bring-me-the-api"><a href="https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/#bring-me-the-api">Bring Me The API!</a></h2>

<p>An API is a way for two computers to talk to each other.&nbsp; The client (dabr) asks the server (AudioBoo) a question.&nbsp; The server replies with some data and the client then does something with it.</p>

<p><a href="https://web.archive.org/web/20091213062905/http://code.google.com/p/audioboo-api/">AudioBoo's API</a> is a "work in progress" - that's the polite term for "not quite finished".
There are various APIs to get information about a 'boo.  However, it's not particularly intuitive.  For example, if I use /audio_clips/
<code>http://api.audioboo.fm/audio_clips/b73803.mp3</code>
I get an error.
I have to drop the b to get
<code>http://api.audioboo.fm/audio_clips/73803.mp3</code></p>

<p>I asked <del datetime="2024-12-30T07:14:32+00:00"><a href="http://groups.google.com/group/audioboo-api-discuss/browse_thread/thread/2c9a8d5694c0c8cd">on the AudioBoo forums</a></del> if there was a better way but I didn't get a quick response - so I turned to twitter.  One of the top AudioBoo bods, Mark Rock, is an active twitterer (seriously - isn't there a better word than that?)</p>

<style>.social-embed {all: unset;display: block;}.social-embed * {all: unset;display: revert;}.social-embed::after {all: unset;}.social-embed::before {all: unset;}blockquote:not(*) {all: unset;}.social-embed a {cursor: pointer;}blockquote.social-embed {box-sizing: border-box;border: .5px solid;width: 550px;max-width: 100%;font-family: sans-serif;margin: 0;margin-bottom: .5em;padding: 1em;border-radius: 1em;background-color: white;color: black;display: block;}.social-embed-header {display: flex;justify-content: space-between;}.social-embed-user {display: flex;position: relative;align-items: center;text-decoration: none;color: inherit;}.social-embed-avatar {width: 3em;height: 3em;margin-right: .5em;}.social-embed-avatar-circle {border-radius: 50%;}.social-embed-avatar-square {border-radius: 5%;}.social-embed-user-names-name {display: flex;align-items: center;font-weight: bold;margin: 0;}.social-embed-text {margin-top: .5em;}.social-embed-footer {display: flex;align-items: center;justify-content: space-between;}.social-embed-logo {width: 3em;}.social-embed-hr {border: .1px solid;margin: .5em 0 .5em 0;}.social-embed-meta {text-decoration: none !important;color: unset !important;}.social-embed-reply {display: block;}.social-embed-text a, .social-embed-footer time {color: blue;text-decoration: underline;}.social-embed-media, .social-embed-video {border-radius:1em;max-width:100%;}.social-embed-reply{font-size:.75em;display:block;}.social-embed-meter{width: 100%;background: #0005;}</style>

<blockquote class="social-embed" id="social-embed-6891551616" lang="en"><header class="social-embed-header"><a href="https://twitter.com/markrock" class="social-embed-user"><img class="social-embed-avatar social-embed-avatar-circle" src="data:image/webp;base64,UklGRnIBAABXRUJQVlA4IGYBAADwCACdASowADAAPrVOo04nI6MiJzgJIOAWiWkACCC4yTCMYIunxokM/b+N/Pp9re6o3hS5iwBY5IkM3LgDNyw8Q/nxRQXv+QLR9acXcUicAAD+/bxqAJJ2SMi/3CcYPVAoO7eyzHN6VlpBGLz9HJRLsoT/uRwjaxmsUUW62rqTyVxPl/YRHIPkwNxEvGcbHI3ICHFR2vg9MHA4Zq+Ru1Stqj4u7D2TxGy3ZC3g8v8FjErNiKfnwB+WuwGSHdBS8eFmeIVL8oKOA48yuKx9AaymBStwI2aJPEQvSalmGoh6fUkIUopCMXSstpwhTXI2EMkSQ6XNh7qXWIHCKIMsrsxzL3Le/qUrpGEGyNDe3su1IH6An8cKo5OU9olyDhbIlXX+a2LwEF5AleO6tEPEK8B93HLC6sW3Q6aU0RSii45/FXOnUQXwPS4a5UNVgTTwGBh+vwyK9WPDoGgAh/dl+M3idLGlVVAA" alt=""><div class="social-embed-user-names"><p class="social-embed-user-names-name">Mark Rock</p>@markrock</div></a><img class="social-embed-logo" alt="" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCmFyaWEtbGFiZWw9IlR3aXR0ZXIiIHJvbGU9ImltZyIKdmlld0JveD0iMCAwIDUxMiA1MTIiPjxwYXRoCmQ9Im0wIDBINTEyVjUxMkgwIgpmaWxsPSIjZmZmIi8+PHBhdGggZmlsbD0iIzFkOWJmMCIgZD0ibTQ1OCAxNDBxLTIzIDEwLTQ1IDEyIDI1LTE1IDM0LTQzLTI0IDE0LTUwIDE5YTc5IDc5IDAgMDAtMTM1IDcycS0xMDEtNy0xNjMtODNhODAgODAgMCAwMDI0IDEwNnEtMTcgMC0zNi0xMHMtMyA2MiA2NCA3OXEtMTkgNS0zNiAxczE1IDUzIDc0IDU1cS01MCA0MC0xMTcgMzNhMjI0IDIyNCAwIDAwMzQ2LTIwMHEyMy0xNiA0MC00MSIvPjwvc3ZnPg=="></header><section class="social-embed-text"><small class="social-embed-reply"><a href="https://twitter.com/davidcarrington">Replying to @davidcarrington</a></small><a href="https://twitter.com/davidcarrington">@davidcarrington</a> <a href="https://twitter.com/edent">@edent</a> just updated server so this works - http://boo.fm/b1234.mp3</section><hr class="social-embed-hr"><footer class="social-embed-footer"><a href="https://twitter.com/markrock/status/6891551616" aria-label="0 likes" class="social-embed-meta">❤️ 0</a><a href="https://twitter.com/markrock/status/6891551616" aria-label="0 replies" class="social-embed-meta">💬 0</a><a href="https://twitter.com/markrock/status/6891551616" aria-label="0 retweets" class="social-embed-meta">♻️ 0</a><a href="https://twitter.com/markrock/status/6891551616"><time datetime="2009-12-21T12:12:59.000Z">12:12 - Mon 21 December 2009</time></a></footer></blockquote>

<p>So, now I can link <code>http://boo.fm/b73803</code> to <code>http://boo.fm/b73803.mp3</code> - simple.  Here's what it looks like in the browser.</p>

<p></p><div id="attachment_1497" style="width: 309px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1497" src="https://shkspr.mobi/blog/wp-content/uploads/2009/12/Screenshot-shkspr.mobi-Search-Mozilla-Firefox-e1262183483383.png" alt="AudioBoo" title="AudioBoo" width="299" height="296" class="size-full wp-image-1497"><p id="caption-attachment-1497" class="wp-caption-text">AudioBoo</p></div><p></p>

<h2 id="phreadz"><a href="https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/#phreadz">Phreadz</a></h2>

<p><a href="https://web.archive.org/web/20091231045531/http://phreadz.com/">Phreadz</a> is a service which allows you to post VITAL - Video Images Text Audio Links - it's a fantastic service, so when Kosso (its founder) asked me to integrate it into Dabr, I was keen to take on the challenge.</p>

<p>The code was quite simple and can be seen in <a href="http://code.google.com/p/dabr/source/detail?r=261">r261</a>.  But there was one small complication - image sizes.</p>

<p>The thumbnail images from Phreadz aren't always suitable for mobiles.  If images are too large, it will slow download speeds and potentially cost people money.</p>

<p>So, I used <a href="https://web.archive.org/web/20091224002557/http://tinysrc.mobi/">tinysrc.mobi</a>. Tinysrc is a very simple API which will resize any image to a mobile friendly format.  It detects the phone's user-agent string and creates a suitable sized image.</p>

<p>Here's what it looks like.</p>

<p></p><div id="attachment_1498" style="width: 410px" class="wp-caption aligncenter"><img aria-describedby="caption-attachment-1498" class="size-full wp-image-1498" title="Phreadz" src="https://shkspr.mobi/blog/wp-content/uploads/2009/12/vodaclone_1261744837_400.jpg" alt="Phreadz" width="400" height="955"><p id="caption-attachment-1498" class="wp-caption-text">Phreadz</p></div><p></p>

<h2 id="conclusions"><a href="https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/#conclusions">Conclusions</a></h2>

<p>I've used 4 separate APIs here - twitter, AudioBoo, Phreadz, tinysrc - the joy of Web 2.0 is that all those disparate services can combine to create something new and magical.</p>

<p>API designers often need to think about how their products will be used "in the wild".  It's very easy to create something that works very well for your requirements - but much harder to think about what others will need.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=1492&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		<enclosure url="http://audioboo.fm/boos/73803-rockbandboo.mp3" length="0" type="audio/mpeg" />
<enclosure url="http://boo.fm/b1234.mp3" length="0" type="audio/mpeg" />
<enclosure url="http://boo.fm/b73803.mp3" length="0" type="audio/mpeg" />

			</item>
	</channel>
</rss>
