<?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>The Power of Mind &#187; api</title>
	<atom:link href="http://draxus.org/weblog/tag/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://draxus.org/weblog</link>
	<description>El blog de DraXus</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:43:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>boxee-miso: first steps</title>
		<link>http://draxus.org/weblog/2011/01/10/boxee-miso-first-steps/</link>
		<comments>http://draxus.org/weblog/2011/01/10/boxee-miso-first-steps/#comments</comments>
		<pubDate>Mon, 10 Jan 2011 22:02:44 +0000</pubDate>
		<dc:creator>DraXus</dc:creator>
				<category><![CDATA[Programación]]></category>
		<category><![CDATA[Software Libre]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[boxee]]></category>
		<category><![CDATA[boxee-miso]]></category>
		<category><![CDATA[miso]]></category>
		<category><![CDATA[xbmc]]></category>

		<guid isPermaLink="false">http://draxus.org/weblog/?p=1381</guid>
		<description><![CDATA[Some months ago, Miso team announced that they will be release an API. If you don&#8217;t know, Miso is a social platform for sharing your media activities (something like Foursquare but for tv shows and movies). So, a few days ago, this API was released and I registered an application named boxee-miso. My goal is [...]]]></description>
			<content:encoded><![CDATA[<p>Some months ago, <a href="http://gomiso.com">Miso</a> team announced that they will be release an API. If you don&#8217;t know, Miso is a social platform for sharing your media activities (something like <a href="http://foursquare.com">Foursquare</a> but for tv shows and movies). So, a few days ago, <a href="http://gomiso.com/developers">this API was released</a> and I registered an application named <strong><a href="http://code.google.com/p/boxee-miso/">boxee-miso</a></strong>. My goal is have a nice way to integrate Miso into <a href="http://www.boxee.tv/">Boxee</a> fabulous interface. If you haven&#8217;t Boxee, don&#8217;t wait to <a href="http://www.boxee.tv/download">download it</a>!</p>
<p>The first thing I did was looking for the code which paint the &#8220;share&#8221; window in Boxee. I&#8217;m using MacOS X, so I found it in
<pre><code>/Applications/Boxee.app/Contents/Resources/Boxee/skin/boxee/720p/boxee_share.xml</code></pre>
<p>. This XML file has a lot of elements, but what we need is to paint a button for checking in our Miso account. I add a new item (the middle one) like you can see in the next code:</p>
<div class="dean_ch" style="white-space: wrap;">
<span class="sc3"><span class="re1">&lt;content<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;item<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;label<span class="re2">&gt;</span></span></span>$LOCALIZE[53463]<span class="sc3"><span class="re1">&lt;/label<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;controlid<span class="re2">&gt;</span></span></span>700<span class="sc3"><span class="re1">&lt;/controlid<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;onclick<span class="re2">&gt;</span></span></span>-<span class="sc3"><span class="re1">&lt;/onclick<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;thumb<span class="re2">&gt;</span></span></span>icons/icon_osd_share.png<span class="sc3"><span class="re1">&lt;/thumb<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/item<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;item<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;label<span class="re2">&gt;</span></span></span>$LOCALIZE[53463]<span class="sc3"><span class="re1">&lt;/label<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;controlid<span class="re2">&gt;</span></span></span>710<span class="sc3"><span class="re1">&lt;/controlid<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;onclick<span class="re2">&gt;</span></span></span>RunScript(/Applications/Boxee.app/Contents/Resources/Boxee/scripts/Miso/test.py, $INFO[Container(5000).ListItem.Label], $INFO[Container(5000).ListItem.TVShowTitle], $INFO[Container(5000).ListItem.Season], $INFO[Container(5000).ListItem.Episode])<span class="sc3"><span class="re1">&lt;/onclick<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;thumb<span class="re2">&gt;</span></span></span>icons/miso_top_logo.png<span class="sc3"><span class="re1">&lt;/thumb<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/item<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;item<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;label<span class="re2">&gt;</span></span></span>$LOCALIZE[53464]<span class="sc3"><span class="re1">&lt;/label<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;controlid<span class="re2">&gt;</span></span></span>720<span class="sc3"><span class="re1">&lt;/controlid<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;onclick<span class="re2">&gt;</span></span></span>-<span class="sc3"><span class="re1">&lt;/onclick<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;thumb<span class="re2">&gt;</span></span></span>icons/icon_custom_text.png<span class="sc3"><span class="re1">&lt;/thumb<span class="re2">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="sc3"><span class="re1">&lt;/item<span class="re2">&gt;</span></span></span><br />
<span class="sc3"><span class="re1">&lt;/content<span class="re2">&gt;</span></span></span><br />
&nbsp;</div>
<p>I still don&#8217;t know what is the purpose of &#8220;controlid&#8221; param, but the others is quite easy to understand. The key of problem is to use well the &#8220;onclick&#8221; param. Fortunately, Boxee is based in <a href="xbmc.org">XBMC</a>, and I could found good documentation in <a href="http://wiki.xbmc.org/index.php?title=List_of_Built_In_Functions">this wiki</a>. So we will use RunScript in order to execute a python script which will receive some params (like name of the show, season or episode).</p>
<p>The image specified by &#8220;thumb&#8221; param is stored in
<pre><code>/Applications/Boxee.app/Contents/Resources/Boxee/skin/boxee/media/icons/miso_top_logo.png</code></pre>
<p>.</p>
<p>Thanks to all of this, I have reached write some content in the Boxee log using the script test.py specified in the &#8220;onclick&#8221; param. Now, I am working with the <a href="http://gomiso.com/developers/authentication">OAuth authentication of Miso API</a>. I will keep you informed.</p>
<div align="center"><a href="http://draxus.org/weblog/wp-content/uploads/2011/01/boxee-miso.png"><img src="http://draxus.org/weblog/wp-content/uploads/2011/01/boxee-miso-300x187.png" alt="" title="boxee-miso" width="300" height="187" class="size-medium wp-image-1389" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://draxus.org/weblog/2011/01/10/boxee-miso-first-steps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AAP Bloque 1.2 Ejercicio 2 &#8211; Ejemplos de interfaces REST</title>
		<link>http://draxus.org/weblog/2009/02/28/aap-bloque-12-ejercicio-2-ejemplos-de-interfaces-rest/</link>
		<comments>http://draxus.org/weblog/2009/02/28/aap-bloque-12-ejercicio-2-ejemplos-de-interfaces-rest/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 16:35:35 +0000</pubDate>
		<dc:creator>DraXus</dc:creator>
				<category><![CDATA[AAP]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[lastfm]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[ugr]]></category>
		<category><![CDATA[uri]]></category>

		<guid isPermaLink="false">http://draxus.org/weblog/?p=1142</guid>
		<description><![CDATA[Hacer un programa o buscar un ejemplo que use un interfaz REST para acceder a algún servicio Web, como del.icio.us. Se denomina interfaz REST a una técnica para el acceso a recursos a través de una URI. La mayoría de los servicios webs actuales ofrecen una API, que son un conjunto de funciones y procedimientos [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Hacer un programa o buscar un ejemplo que use un interfaz REST para acceder a algún servicio Web, como <a href="http://del.icio.us">del.icio.us</a>.</p></blockquote>
<p>Se denomina interfaz <strong><acronym title="Representational State Transfer">REST</acronym></strong> a una técnica para el acceso a recursos a través de una <acronym title="Uniform Resource Identifier">URI</acronym>.</p>
<p>La mayoría de los servicios webs actuales <strong>ofrecen una <acronym title="Application Programming Interface">API</acronym></strong>, que son un conjunto de funciones y procedimientos para desarrollar aplicaciones externas, generalmente mediante la técnica REST. Veamos un par de ejemplos.</p>
<p><strong><a href="http://www.lastfm.es/">Last.fm</a></strong> es el mayor portal de recomendación de música online y una de sus múltiples funciones de <a href="http://www.lastfm.es/api">su API</a> es <a href="http://www.lastfm.es/api/show?service=270">geo.getEvents</a>, que nos da los eventos cercanos a una posición. Por ejemplo, con <a href="http://ws.audioscrobbler.com/2.0/?method=geo.getevents&#038;location=granada&#038;api_key=b25b959554ed76058ac220b7b2e0a026">http://ws.audioscrobbler.com/2.0/?method=geo.getevents&#038;location=granada&#038;api_key=b25b959554ed76058ac220b7b2e0a026</a> veremos los próximos conciertos que se van a celebrar en o cerca de Granada.</p>
<p>Podemos ver otro ejemplo en el caso de <strong><a href="http://www.flickr.com">Flickr</a></strong>, la mayor red social de fotografía online. Si usamos la función <a href="http://www.flickr.com/services/api/flickr.favorites.getPublicList.html">flickr.favorites.getPublicList</a> de <a href="http://www.flickr.com/services/api/">su API</a>, podemos obtener las fotografías públicas favoritas de un usuario de esta forma: <a href="http://api.flickr.com/services/rest/?method=flickr.favorites.getPublicList&#038;api_key=a6a323fe1aa900e0c15211f28ffdc42c&#038;user_id=92176591%40N00">http://api.flickr.com/services/rest/?method=flickr.favorites.getPublicList&#038;api_key=a6a323fe1aa900e0c15211f28ffdc42c&#038;user_id=92176591%40N00</a></p>
<p>Normalmente los resultados de estas peticiones se devuelven en formato XML o JSON, para que el procesador posterior de los datos resulte lo más cómodo posible.</p>
<p>En la mayoría de estos servicios es necesario solicitar una <em>API Key</em> para hacer las peticiones, de manera que en todo momento se sabe el uso que se hace de ella y te la pueden inhabilitar si sobrepasas los límites del servicio.</p>
<p><strong>Nota:</strong> leer comentarios.</p>
]]></content:encoded>
			<wfw:commentRss>http://draxus.org/weblog/2009/02/28/aap-bloque-12-ejercicio-2-ejemplos-de-interfaces-rest/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Enviar SMS por Skype en Linux</title>
		<link>http://draxus.org/weblog/2008/11/20/enviar-sms-por-skype-en-linux/</link>
		<comments>http://draxus.org/weblog/2008/11/20/enviar-sms-por-skype-en-linux/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 10:55:04 +0000</pubDate>
		<dc:creator>DraXus</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://draxus.org/weblog/?p=1013</guid>
		<description><![CDATA[La versión de Skype para Linux no permite todavía enviar mensajes SMS a móviles. Ante la necesidad, buscando por Google (¿por dónde si no?), encontré que existe Skype4Py, una API para Python para usar en tus aplicaciones. Pero como quería algo ya hecho, di con Skype Linux Tools, que te permite, entre otras cosas, enviar [...]]]></description>
			<content:encoded><![CDATA[<p>La versión de Skype para Linux no permite todavía enviar mensajes SMS a móviles. Ante la necesidad, buscando por Google (¿por dónde si no?), encontré que existe <a href="https://developer.skype.com/wiki/Skype4Py">Skype4Py</a>, una API para Python para usar en tus aplicaciones. Pero como quería algo ya hecho, di con <strong><a href="http://www.oberle.org/skype_linux_tools/">Skype Linux Tools</a></strong>, que te permite, entre otras cosas, enviar <strong>mensajes SMS con tu saldo de Skype</strong>.</p>
<p>Primero tienes que tener abierto Skype e identificado con tu usuario. La herramienta funciona en línea de comandos. Para enviar un SMS sólo tienes que escribir en tu terminal:</p>
<pre><code>./send_sms.py NUMERO_DE_TELEFONO Tu mensaje sms.</code></pre>
<p>Para comprobar antes de enviar, en cuántos SMS se va a dividir tu mensaje puedes usar:</p>
<pre><code>./send_sms.py -n NUMERO_DE_TELEFONO Tu mensaje sms.</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://draxus.org/weblog/2008/11/20/enviar-sms-por-skype-en-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Googlelización</title>
		<link>http://draxus.org/weblog/2007/11/03/googlelizacion/</link>
		<comments>http://draxus.org/weblog/2007/11/03/googlelizacion/#comments</comments>
		<pubDate>Sat, 03 Nov 2007 12:56:11 +0000</pubDate>
		<dc:creator>DraXus</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[Online]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[granhermano]]></category>
		<category><![CDATA[opensocial]]></category>

		<guid isPermaLink="false">http://draxus.org/weblog/2007/11/03/googlelizacion/</guid>
		<description><![CDATA[Google ha lanzado OpenSocial: &#8220;una API para para dominarlos a todos, una API para encontrarlos, una API para atraerlos a todos y atarlos en las tinieblas&#8221;. Así podríamos resumir esta nueva iniciativa de Google para tratar de no quedarse atrás con respecto a Facebook (en el que ha invertido Microsoft). Podéis ver ejemplos de las [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://draxus.org/weblog/wp-content/uploads/2007/11/opensocial.jpg" align="right" /><br />
Google ha lanzado <a href="http://code.google.com/apis/opensocial/">OpenSocial</a>: <em>&#8220;una <a href="http://code.google.com/apis/opensocial/docs/">API</a> para para dominarlos a todos, una API para encontrarlos, una API para atraerlos a todos y atarlos en las tinieblas&#8221;</em>. Así podríamos resumir esta nueva iniciativa de Google para tratar de <strong>no quedarse atrás</strong> con respecto a <a href="http://www.facebook.com/">Facebook</a> (en el que ha invertido Microsoft). Podéis ver <a href="http://code.google.com/apis/opensocial/examples.html">ejemplos</a> de <a href="http://code.google.com/apis/opensocial/partners.html">las empresas</a> que ya lo están empezando a usar (MySpace, Orkut, Slide, LinkedIn, Ning, Netvibes, etc.).</p>
<p>Agarráos que <strong>vienen nuevos cambios</strong>. Podéis ampliar información en <a href="http://google.dirson.com/o.a/opensocial/">Dirson</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://draxus.org/weblog/2007/11/03/googlelizacion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

