<?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>Inside Snipplr.com &#187; API</title>
	<atom:link href="http://snipplr.com/blog/category/api/feed/" rel="self" type="application/rss+xml" />
	<link>http://snipplr.com/blog</link>
	<description>s nipple r &#60;em&#62;dot com!&#60;/em&#62;</description>
	<lastBuildDate>Wed, 23 Nov 2011 17:51:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Snipplr Plugin for Eclipse</title>
		<link>http://snipplr.com/blog/2007/06/06/snipplr-plugin-for-eclipse/</link>
		<comments>http://snipplr.com/blog/2007/06/06/snipplr-plugin-for-eclipse/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 16:02:04 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://blog.snipplr.com/2007/06/06/snipplr-plugin-for-eclipse/</guid>
		<description><![CDATA[Oliver Nautsch has created snipplr4e &#8211; a Snipplr plugin for the Eclipse IDE. The plugin features


Preference page to insert and validate your Snipplr API-Key
Post a snippet from the eclipse editor to snipplr.com
Search your snippets and favorites at snipplr.com
Open your snippets and favorites
Drag and Drop a snippet from the search result
Ctrl+C to copy a snippet from [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nautsch.net/">Oliver Nautsch</a> has created <a href="http://snipplr4e.sourceforge.net/">snipplr4e</a> &#8211; a Snipplr plugin for the <a href="http://www.eclipse.org/">Eclipse IDE</a>. The plugin features</p>

<ul>
<li>Preference page to insert and validate your Snipplr API-Key</li>
<li>Post a snippet from the eclipse editor to snipplr.com</li>
<li>Search your snippets and favorites at snipplr.com</li>
<li>Open your snippets and favorites</li>
<li>Drag and Drop a snippet from the search result</li>
<li>Ctrl+C to copy a snippet from the search result into the clipboard</li>
<li>Deleting a snippet at snipplr</li>
</ul>

<p>Thanks to Oliver for his great work. You can <a href="http://sourceforge.net/project/showfiles.php?group_id=196678">download snipplr4e here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipplr.com/blog/2007/06/06/snipplr-plugin-for-eclipse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snipplr API Working Again</title>
		<link>http://snipplr.com/blog/2007/05/31/snipplr-api-working-again/</link>
		<comments>http://snipplr.com/blog/2007/05/31/snipplr-api-working-again/#comments</comments>
		<pubDate>Thu, 31 May 2007 20:43:44 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.snipplr.com/2007/05/31/snipplr-api-working-again/</guid>
		<description><![CDATA[I&#8217;ve been pulling my hair out for the last day trying to figure out why the Snipplr XML-RPC API went down. I noticed that it happened around the time Dreamhost upgraded to PHP 5.2.2. but couldn&#8217;t track down the exact cause.

This post from Daniel Jalkut&#8217;s blog was the first I had heard of other websites [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been pulling my hair out for the last day trying to figure out why the <a href="http://snipplr.com/extras/api/">Snipplr XML-RPC API</a> went down. I noticed that it happened around the time Dreamhost upgraded to PHP 5.2.2. but couldn&#8217;t track down the exact cause.</p>

<p><a href="http://www.red-sweater.com/blog/342/xml-rpc-response-parsing-failed">This post</a> from <a href="http://www.red-sweater.com/blog/">Daniel Jalkut&#8217;s blog</a> was the first I had heard of other websites (like <strong>every</strong> WordPress blog) having similar issues. Turns out, <a href="http://bugs.php.net/bug.php?id=41293">a bug</a> in PHP 5.2.2 makes $HTTP_ RAW_ POST_DATA not set by default. And since the XML-RPC library I rely on uses that variable, kablooey! Goodbye API!</p>

<p>In any case, it&#8217;s fixed now.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipplr.com/blog/2007/05/31/snipplr-api-working-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snipplr API Updated</title>
		<link>http://snipplr.com/blog/2007/01/30/snipplr-api-updated/</link>
		<comments>http://snipplr.com/blog/2007/01/30/snipplr-api-updated/#comments</comments>
		<pubDate>Wed, 31 Jan 2007 05:19:13 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://blog.snipplr.com/2007/01/30/snipplr-api-updated/</guid>
		<description><![CDATA[I bet you all thought Snipplr was left for dead, eh? Sorry about that. In the last couple months I&#8217;ve gotten married, bought a house, and helped roll out a new service. Things have been busy  

Back to business. I&#8217;ve updated the API&#8217;s snippet.post method to allow specifying a language type. To do so, [...]]]></description>
			<content:encoded><![CDATA[<p>I bet you all thought Snipplr was left for dead, eh? Sorry about that. In the last couple months I&#8217;ve gotten married, bought a house, and helped roll out <a href="http://basejumpr.com">a new service</a>. Things have been busy <img src='http://snipplr.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p>Back to business. I&#8217;ve updated the API&#8217;s snippet.post method to allow specifying a language type. To do so, pass an (optional) fourth parameter containing the language ID. What is the language ID you may ask? It&#8217;s the URL formatted language name found in all of Snipplr&#8217;s URLs. For example:</p>

<p>http://snipplr.com/all/language/javascript

http://snipplr.com/all/language/c-plus-plus


http://snipplr.com/all/language/c-sharp


http://snipplr.com/all/language/cold-fusion</p>

<p>In these URLs, the language IDs are &#8220;javascript&#8221;, &#8220;c-plus-plus&#8221;, &#8220;c-sharp&#8221;, and &#8220;cold-fusion&#8221;, respectively.</p>

<p>If that&#8217;s not helpful enough, I&#8217;ve also added languages.list method which returns a list of language url names and their corresponding pretty names. i.e., c-sharp and C#, c-plus-plus and C++.</p>

<p>You can view the API reference <a href="http://blog.snipplr.com/2006/07/06/snipplr-api/">here</a>.</p>

<p>Let me know if you run into any issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipplr.com/blog/2007/01/30/snipplr-api-updated/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Updated Snipplr API</title>
		<link>http://snipplr.com/blog/2006/09/20/updated-snipplr-api/</link>
		<comments>http://snipplr.com/blog/2006/09/20/updated-snipplr-api/#comments</comments>
		<pubDate>Wed, 20 Sep 2006 13:32:21 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.snipplr.com/2006/09/20/updated-snipplr-api/</guid>
		<description><![CDATA[Based on visitor feedback (thanks, HernÃ¡n!) I updated the Snipplr API this morning. The snippet.get method now returns a list of the snippet&#8217;s tags. Also, I added a much needed snippet.delete method that (you guessed it) lets you delete snippets from your account. Click here for the API documentation.
]]></description>
			<content:encoded><![CDATA[<p>Based on visitor feedback (thanks, <a href="http://h.ordia.com.ar">HernÃ¡n</a>!) I updated the Snipplr API this morning. The snippet.get method now returns a list of the snippet&#8217;s tags. Also, I added a much needed snippet.delete method that (you guessed it) lets you delete snippets from your account. Click here for the <a href="http://blog.snipplr.com/2006/07/06/snipplr-api/">API documentation</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipplr.com/blog/2006/09/20/updated-snipplr-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Free Snipplr T-Shirts Up For Grabs</title>
		<link>http://snipplr.com/blog/2006/07/06/free-snipplr-t-shirts-up-for-grabs/</link>
		<comments>http://snipplr.com/blog/2006/07/06/free-snipplr-t-shirts-up-for-grabs/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 07:52:35 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.snipplr.com/2006/07/06/free-snipplr-t-shirts-up-for-grabs/</guid>
		<description><![CDATA[As I mentioned in my previous post, I&#8217;m looking for people to write Snipplr plugins for their favorite text editors (including TextMate and BBedit) and websites. In return, if the plugin is approved, I&#8217;ll send you a free Snipplr t-shirt and list your name on the website.

Info on how to use the new Snipplr API [...]]]></description>
			<content:encoded><![CDATA[<p>As I mentioned in my <a href="http://blog.snipplr.com/2006/07/06/snipplr-api/">previous post</a>, I&#8217;m looking for people to write Snipplr plugins for their favorite text editors (including <a href="http://macromates.com">TextMate</a> and <a href="http://www.barebones.com/products/bbedit/">BBedit</a>) and websites. In return, if the plugin is approved, I&#8217;ll send you a free Snipplr t-shirt and list your name on the website.</p>

<p>Info on how to use the new Snipplr API (so you can write a plugin) is available <a href="http://blog.snipplr.com/2006/07/06/snipplr-api/">here</a>.</p>

<p><strong>Updated:</strong> You might also want to check out the <a href="http://snipplr.com/extras/wordpress">plugin for WordPress</a> I recently released. Viewing the source will give you a good overview of how the API works. (especially if you&#8217;re using PHP).</p>
]]></content:encoded>
			<wfw:commentRss>http://snipplr.com/blog/2006/07/06/free-snipplr-t-shirts-up-for-grabs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Snipplr API</title>
		<link>http://snipplr.com/blog/2006/07/06/snipplr-api/</link>
		<comments>http://snipplr.com/blog/2006/07/06/snipplr-api/#comments</comments>
		<pubDate>Thu, 06 Jul 2006 07:42:27 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.snipplr.com/2006/07/06/snipplr-api/</guid>
		<description><![CDATA[Tonight I&#8217;m releasing an offical Snipplr API which will allow anyone to write their own plugins to communicate with Snipplr. You can use the API to talk to Snipplr from other websites, your favorite text editor, or any desktop app. It&#8217;s up to you. You&#8217;re in control now.

The Snipplr API uses the standard XML-RPC protocol [...]]]></description>
			<content:encoded><![CDATA[<p>Tonight I&#8217;m releasing an offical Snipplr API which will allow anyone to write their own plugins to communicate with Snipplr. You can use the API to talk to Snipplr from other websites, your favorite text editor, or any desktop app. It&#8217;s up to you. You&#8217;re in control now.</p>

<p>The Snipplr API uses the standard <a href="http://www.xmlrpc.com/">XML-RPC protocol</a> and offers the following methods.</p>

<ul>
<li><code>snippet.list</code> &#8211; Returns a list of snippets based on the search criteria you provide.</li>
<li><code>snippet.get</code> &#8211; Retrieves the details (including source code) for a given snippet.</li>
<li><code>snippet.post</code> &#8211; Allows you to store a new snippet into Snipplr.</li>
<li><code>snippet.delete</code> &#8211; Allows you to delete a snippet.</li>
<li><code>user.checkkey</code> &#8211; Validates a user&#8217;s API key.</li>
<li><code>languages.list</code> &#8211; Returns a list of available languages.</li>
</ul>

<p>I&#8217;d appreciate <a href="http://snipplr.com/contact">feedback</a> letting me know about any problems you run into or features you&#8217;d like added.</p>

<p>Also, <strong>for all the TextMate hackers out there</strong>, I&#8217;ve got an offer for you. I&#8217;d like to replace the current TextMate <a href="http://snipplr.com/textmate/">Snipplr bundle</a> with a more maintainable Ruby version. (The current one is a mess that uses shell scripting.) I only know a little Ruby, so along with their name on Snipplr and my eternal thanks, the first person to send in a good, <em>working</em> Snipplr plugin for <a href="http://macromates.com">TextMate</a> gets a free Snipplr t-shirt <img src='http://snipplr.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  In fact, if you want to write a plugin for another editor (BBEdit!), and I approve it, I&#8217;ll send you a Snipplr t-shirt as well.</p>

<h3>Using the API</h3>

<table>
    <tr>
        <td><strong>Server:</strong></td>
        <td><code>http://snipplr.com</code></td>
    </tr>
    <tr>
        <td><strong>End Point:</strong></td>
        <td><code>/xml-rpc.php</code></td>
    </tr>
    <tr>
        <td><strong>Full URL:</strong></td>
        <td><code>http://snipplr.com/xml-rpc.php</code></td>
    </tr>
</table>

<h3>snippet.list</h3>

<p><code>snippet.list</code> returns an XML formatted list of snippets matching the specified criteria. Takes two parameters (must be passed in this order):</p>

<ul>
<li><p><em>api_key:</em> Required. The API key of the Snipplr user. Snipplr returns all of this user&#8217;s snippets. An error message will be returned if the API key is invalid.</p></li>
<li><p><em>tags:</em> Optional. A space delimited list of tags (keywords) to filter the results by. Snipplr returns snippets which contain at least one of the keywords in the snippet&#8217;s title or that match one of the snippet&#8217;s tags.</p></li>
<li><p><em>sort:</em> Optional. Can be one of these three values: &#8220;title&#8221;, &#8220;date&#8221;, &#8220;random&#8221;.</p></li>
<li><p><em>limit:</em> Optional. The number of snippets to return.</p></li>
</ul>

<p>Note: <code>snippet.list</code> only returns snippets owned by the user or marked as favorites of the user. It does not search <em>all</em> of the snippets on Snipplr.</p>

<h3>snippet.get</h3>

<p><code>snippet.get</code> returns a snippet&#8217;s details. Takes one parameter:</p>

<ul>
<li><em>snippet_id:</em> Required. The ID of the snippet to fetch. An error message will be returned if the ID is invalid.</li>
</ul>

<p><code>snippet.get</code> currently returns the following snippet properties:</p>

<ul>
<li>id</li>
<li>user_id</li>
<li>username</li>
<li>title</li>
<li>language</li>
<li>comment</li>
<li>created (datetime when snippet was created)</li>
<li>source</li>
<li>snipplr_url (url to view snippet)</li>
<li>tags (space delimited list of the snippet&#8217;s tags)</li>
</ul>

<h3>snippet.post</h3>

<p><code>snippet.post</code> stores a new snippet into Snipplr. Takes four parameters (must be passed in this order):</p>

<ul>
<li><p><em>api_key:</em> Required. The API key of the Snipplr user to which the snippet will belong. An error message will be returned if the API key is invalid.</p></li>
<li><p><em>title:</em> Required. The title of the snippet.</p></li>
<li><p><em>code:</em> Required. The snippet&#8217;s source code.</p></li>
<li><p><em>tags:</em> Optional. A space delimited list of keywords to tag the snippet with.</p></li>
<li><p><em>language:</em> Optional. The language to mark the snippet as. Use the language name found in Snipplr&#8217;s URLs. For example, &#8220;javascript&#8221; or &#8220;c-plus-plus&#8221;.</p></li>
</ul>

<h3>snippet.delete</h3>

<p><code>snippet.delete</code> deletes a snippet from your Snipplr account. Returns 1 on success, 0 if the snippet could not be deleted. Takes two parameters (must be passed in this order):</p>

<ul>
<li><p><em>api_key:</em> Required. The API key of the Snipplr user that created the snippet you are deleting. An error message will be returned if the API key is invalid.</p></li>
<li><p><em>snippet_id</em>: Required. The ID of the snippet you are deleting.</p></li>
</ul>

<h3>user.checkkey</h3>

<p><code>user.checkkey</code> validates a user&#8217;s API key. Returns 1 if the key is valid. 0 if not valid. Takes one parameter.</p>

<ul>
<li><em>api_key:</em> The API key to validate.</li>
</ul>

<h3>languages.list</h3>

<p><code>languages.list</code> returns a list of supported languages in Snipplr. It returns their <code>urlname</code> and <code>pretty name</code>. The <code>urlname</code> is the value you pass into the <code>snippet.post</code> method. The <code>pretty name</code> is a nicely formatted version of <code>urlname</code>. It&#8217;s just there for your reference. This method takes no parameters.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipplr.com/blog/2006/07/06/snipplr-api/feed/</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>New Features Today</title>
		<link>http://snipplr.com/blog/2006/07/05/new-features-today/</link>
		<comments>http://snipplr.com/blog/2006/07/05/new-features-today/#comments</comments>
		<pubDate>Wed, 05 Jul 2006 09:38:37 +0000</pubDate>
		<dc:creator>Tyler</dc:creator>
				<category><![CDATA[API]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://blog.snipplr.com/2006/07/05/new-features-today/</guid>
		<description><![CDATA[I pushed out a new version of Snipplr early this morning. There are a lot of improvements &#8211; both above and under the hood. In deciding what to work on over the holiday weekend, I picked out the best suggestions from all the emails I&#8217;ve received and combined that list with my own bug fixes.

New [...]]]></description>
			<content:encoded><![CDATA[<p>I pushed out a new version of Snipplr early this morning. There are a lot of improvements &#8211; both above and under the hood. In deciding what to work on over the holiday weekend, I picked out the best suggestions from all the emails I&#8217;ve received and combined that list with my own bug fixes.</p>

<h3>New Languages</h3>

<ul>
<li><a href="http://snipplr.com/all/language/applescript">AppleScript</a></li>
<li><a href="http://snipplr.com/all/language/lisp">Lisp</a></li>
<li><a href="http://snipplr.com/all/language/svn">SVN</a></li>
<li><a href="http://snipplr.com/all/language/xml">XML</a></li>
</ul>

<h3>New Features</h3>

<ul>
<li>You can add your location to your <a href="http://snipplr.com/settings/">profile</a>.</li>
<li>You can add your website to your profile.</li>
<li>Each user can now pick which language tabs they want to appear throughout the site. This allows me to keep the list short and prevent wrapping as often as possible.</li>
<li>Snipplr&#8217;s layout has been change a little, too. The tag cloud was beginning to take up too much room on the page, so I&#8217;ve moved it to the side bar (and increased the width of the sidebar).</li>
</ul>

<p><strong>Update:</strong> Added an option to specify the number of snippets per page. (Thanks, Luis!) Also, I recorded a <a href="http://blog.snipplr.com/wp-content/uploads/2006/07/dragtabs.mov">short screencast</a> showing how to drag the language tabs for people who are having problems.</p>

<h3>Fixes</h3>

<ul>
<li>The back and forth paging links are now located at the top <em>and</em> bottom of the page.</li>
<li>Lots of internal bug fixes.</li>
</ul>

<h3>Coming Soon</h3>

<p>Here&#8217;s what I&#8217;m working on currently and plan to roll out this weekend.</p>

<ul>
<li>Code comments. Let users leave comments on other people&#8217;s snippets.</li>
<li>Snippet ratings. Users can rate snippets 1 &#8211; 5 to help others find the best ones quickly.</li>
<li>Revamped RSS feeds allowing you to make a feed from any page. This will let you subscribe to individual tags. (Another much requested feature.)</li>
<li>Releasing an &#8220;official&#8221; Snipplr API using XMl-RPC. Right now the TextMate bundle communicates using a simple GET/POST query. I hope having a documented API will encourage developers to write plugins for BBEdit, Vim, Emacs, and all the other text editors out there.</li>
<li>I&#8217;m also toying with the idea of classifying snippets based on spoken language. So people who only speak English can ignore all the Spanish snippets and vice-versa. Thoughts?</li>
</ul>

<p>Again, as always, please let me know of any bugs you find or suggestions you have. You can leave your comments below or <a href="http://snipplr.com/contact/">contact me here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipplr.com/blog/2006/07/05/new-features-today/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
<enclosure url="http://blog.snipplr.com/wp-content/uploads/2006/07/dragtabs.mov" length="458650" type="video/quicktime" />
		</item>
	</channel>
</rss>

