Quick Look at ScrnShots' API
A few months ago, I ran across ScrnShots. It's basically a service for uploading, tagging and sharing screenshots of websites. This is pretty useful for me given my profession :).
One of the things, however, that has always impressed me about the site is how easy and fun to use it is. It features really deep networking capabilities, the tagging is pretty robust, and everything is fast, fast, fast!
Of course, while uploading from the site is easy, I've been waiting with baited breath for them to release an API. Well, recently this happened, and I couldn't be more excited!
The API is alot like Twitter's in that it uses Basic Authentication for user-specific http calls. While not the most secure form of authentication, it is ridiculously easy, especially if you're using ColdFusion whose cfhttp tag has a built in mechanism for managing it.
So tonight, I spent a couple minutes digging into the API, and came away with an easy function for uploading, tagging and providing a description and link for an image. And of course, if you're using ColdFusion, it's cake!
Here it is:
<cfhttp url="http://www.scrnshots.com/screenshots.xml" method="POST" charset="utf-8" username="existdissolve" password="password" multipart="yes">
<cfhttpparam name="enctype" type="header" value="multipart/form-data">
<cfhttpparam name="screenshot[uploaded_data]" type="file" file="#filearea#" mimetype="image/jpeg">
<cfhttpparam name="screenshot[description]" value="#FORM.description#" type="formfield">
<cfhttpparam name="screenshot[tag_list]" value="#FORM.tags#" type="formfield">
<cfhttpparam name="screenshot[source_url]" value="#FORM.url#" type="formfield">
The function for uploading an image takes 4 arguments, one for the image itself, one for tags, one for the description and a final one for the url (if any). Simple. And the function returns a nicely formatted XML structure that could be used to store upload information, compile tags, etc.
Needless to say, I am very excited about this. Progress on my CSS gallery is coming along, and I am going to hook it into ScrnShots so that all of the featured sites that I add will automatically be populated to ScrnShots, thus boosting my stats on the site. Woot!
Oh, yeah, and be sure to check me out on ScrnShots!
|Print article||This entry was posted by existdissolve on June 4, 2008 at 9:36 pm, and is filed under Web Development. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site.|
No comments yet.
No trackbacks yet.
about 2 years ago - 5 comments
As I’ve used Sencha Fiddle, I’ve really come to enjoy how simple it makes testing ideas, exploring aspects of Ext JS, and debugging my code. One of the really nice features is the ability to simulate AJAX requests. While this is REALLY nice for simulating the loading of remote data, one place where it has…
about 7 years ago - 1 comment
In a recent post, I linked a video that outlined my initial experiences with building XAML applications for the Sitecore desktop. Coming off that experience, I was super excited to try out another application–SocialMe is the result. Basically, SocialMe allows Sitecore users to save social networking credentials (currently Flickr, Twitter, and Facebook) to their Sitecore…
about 7 years ago - 1 comment
Over the weekend, I downloaded Sitecore Xpress and spent some time developing a Sitecore Desktop application based on XAML, C# and the Sitecore API. Here's the result:
about 8 years ago - No comments
Over the last several months, I've gotten into Twitter ALOT. I find it to not only be fun, but it is also an interesting social experiment. I've been surprised by how many great resources I've come across because of my followers quickly twittering something they think is cool/helpful. Naturally, the next stage in my relationship…
about 9 years ago - No comments
Today, for work, my boss asked for me to create a bit of functionality that would allow users to return lists of people from a database who live within [x] miles of an entered zip code. I've never created something like this before, but I've been around long enough to know that this kind of…