<?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>
	<copyright>© Terence Eden. 🄯 CC BY-SA. See https://shkspr.mobi/blog/copyright-and-copyleft/</copyright>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</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[Terence Eden]]></dc:creator>
		<pubDate>Wed, 30 Dec 2009 14:33:58 +0000</pubDate>
		<category><![CDATA[api]]></category><category><![CDATA[audioboo]]></category><category><![CDATA[dabr]]></category><category><![CDATA[mobile]]></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>&lt;p&gt;A quick explanation of how I integrated AudioBoo and Phreadz with Dabr.&lt;/p&gt;

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

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

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

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

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

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

&lt;p&gt;&lt;a href="https://web.archive.org/web/20091213062905/http://code.google.com/p/audioboo-api/"&gt;AudioBoo's API&lt;/a&gt; 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/
&lt;code&gt;http://api.audioboo.fm/audio_clips/b73803.mp3&lt;/code&gt;
I get an error.
I have to drop the b to get
&lt;code&gt;http://api.audioboo.fm/audio_clips/73803.mp3&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;I asked &lt;del datetime="2024-12-30T07:14:32+00:00"&gt;&lt;a href="http://groups.google.com/group/audioboo-api-discuss/browse_thread/thread/2c9a8d5694c0c8cd"&gt;on the AudioBoo forums&lt;/a&gt;&lt;/del&gt; 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?)&lt;/p&gt;

&lt;style&gt;.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;}&lt;/style&gt;

&lt;blockquote class="social-embed" id="social-embed-6891551616" lang="en"&gt;&lt;header class="social-embed-header"&gt;&lt;a href="https://twitter.com/markrock" class="social-embed-user"&gt;&lt;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=""&gt;&lt;div class="social-embed-user-names"&gt;&lt;p class="social-embed-user-names-name"&gt;Mark Rock&lt;/p&gt;@markrock&lt;/div&gt;&lt;/a&gt;&lt;img class="social-embed-logo" alt="" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCmFyaWEtbGFiZWw9IlR3aXR0ZXIiIHJvbGU9ImltZyIKdmlld0JveD0iMCAwIDUxMiA1MTIiPjxwYXRoCmQ9Im0wIDBINTEyVjUxMkgwIgpmaWxsPSIjZmZmIi8+PHBhdGggZmlsbD0iIzFkOWJmMCIgZD0ibTQ1OCAxNDBxLTIzIDEwLTQ1IDEyIDI1LTE1IDM0LTQzLTI0IDE0LTUwIDE5YTc5IDc5IDAgMDAtMTM1IDcycS0xMDEtNy0xNjMtODNhODAgODAgMCAwMDI0IDEwNnEtMTcgMC0zNi0xMHMtMyA2MiA2NCA3OXEtMTkgNS0zNiAxczE1IDUzIDc0IDU1cS01MCA0MC0xMTcgMzNhMjI0IDIyNCAwIDAwMzQ2LTIwMHEyMy0xNiA0MC00MSIvPjwvc3ZnPg=="&gt;&lt;/header&gt;&lt;section class="social-embed-text"&gt;&lt;small class="social-embed-reply"&gt;&lt;a href="https://twitter.com/davidcarrington"&gt;Replying to @davidcarrington&lt;/a&gt;&lt;/small&gt;&lt;a href="https://twitter.com/davidcarrington"&gt;@davidcarrington&lt;/a&gt; &lt;a href="https://twitter.com/edent"&gt;@edent&lt;/a&gt; just updated server so this works - http://boo.fm/b1234.mp3&lt;/section&gt;&lt;hr class="social-embed-hr"&gt;&lt;footer class="social-embed-footer"&gt;&lt;a href="https://twitter.com/markrock/status/6891551616" aria-label="0 likes" class="social-embed-meta"&gt;❤️ 0&lt;/a&gt;&lt;a href="https://twitter.com/markrock/status/6891551616" aria-label="0 replies" class="social-embed-meta"&gt;💬 0&lt;/a&gt;&lt;a href="https://twitter.com/markrock/status/6891551616" aria-label="0 retweets" class="social-embed-meta"&gt;♻️ 0&lt;/a&gt;&lt;a href="https://twitter.com/markrock/status/6891551616"&gt;&lt;time datetime="2009-12-21T12:12:59.000Z"&gt;12:12 - Mon 21 December 2009&lt;/time&gt;&lt;/a&gt;&lt;/footer&gt;&lt;/blockquote&gt;

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

&lt;p&gt;&lt;/p&gt;&lt;div id="attachment_1497-2" style="width: 309px" class="wp-caption aligncenter"&gt;&lt;img aria-describedby="caption-attachment-1497-2" 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"&gt;&lt;p id="caption-attachment-1497-2" class="wp-caption-text"&gt;AudioBoo&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;h2 id="phreadz"&gt;&lt;a href="https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/#phreadz"&gt;Phreadz&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://web.archive.org/web/20091231045531/http://phreadz.com/"&gt;Phreadz&lt;/a&gt; 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.&lt;/p&gt;

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

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;So, I used &lt;a href="https://web.archive.org/web/20091224002557/http://tinysrc.mobi/"&gt;tinysrc.mobi&lt;/a&gt;. 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.&lt;/p&gt;

&lt;p&gt;Here's what it looks like.&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;&lt;div id="attachment_1498-2" style="width: 410px" class="wp-caption aligncenter"&gt;&lt;img aria-describedby="caption-attachment-1498-2" 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"&gt;&lt;p id="caption-attachment-1498-2" class="wp-caption-text"&gt;Phreadz&lt;/p&gt;&lt;/div&gt;&lt;p&gt;&lt;/p&gt;

&lt;h2 id="conclusions"&gt;&lt;a href="https://shkspr.mobi/blog/2009/12/integrating-audioboo-phreadz-dabr/#conclusions"&gt;Conclusions&lt;/a&gt;&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;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.&lt;/p&gt;
&lt;img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=1492&amp;amp;HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager"&gt;</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>
