Adobe today released a beautiful looking online service called Adobe SHARE (beta). Share can be viewed as your online document library in the clouds. You can easily upload a document and share it with others. A thumbnail and an Adobe Flash preview of most document types are automatically created and the Flash preview can be embedded in most blogs. At this point the share service requires a browser with latest version of the Adobe Flash plug-in.
In addition, today Adobe also released the web services for SHARE. The web services offer a simple REST based API to access Share libraries. You can use the web services to create mash-ups. In my quest to learn Ruby on Rails. I’ve written a simple application (based on the RailsSpaces book) that allows you to view your Share library using plain old HTML. I wanted to access my Share library on my iPhone (which has an excellent support for PDF and other file formats). The current mash-up – http://web.sharepdf.com/ – is not speedy, nothing is currently cached and there are lots of other applications running on this server. You can see the source code here.
There are a couple of minor bugs in the current web services & this mash-up:
- The XML requests cannot contain any new line characters. For now, just send your XML request as one long string with no line breaks.
- Ruby returns the current time in seconds. Share API requires the time in mili-seconds, so consecutive calls may appear to be issued at the same time. Just add a sleep in between the calls, e.g., to insert “sleep 1″ when you iterate over the list of your documents.
- There is a typo in the API documentation, the URL to get the source document must end in
srcand not insource. See the definition of the method src.- I tweaked the site.css file and now the application shows up as a tiny thumbnail on my iPhone. Just tap on the app and iPhone will automatically zoom it.
October 7, 2007 at 4:05 am |
If your web page is showing up as a small thumbnail on your iPhone, use the viewport meta-tag.
October 13, 2007 at 11:26 am |
Cool! I wanted an application like this. so I had made API wrapper before making rails app…
http://adobeshare.rubyforge.org/
In Japan, we can’t get iPhone, but iPod touch was released. I can browse Adobe Share document via your rails app.
BTW:
> Ruby returns the current time in seconds.
How about “tv_usec” method?
my implementation is
> time = Time.new
> calltime = time.to_i.to_s + sprintf(”%06d”, time.tv_usec)
October 13, 2007 at 4:04 pm |
Thank you for pointing out that I could use the tv_uses method. I’ll checkout your Ruby classes & perhaps start using them.
October 13, 2007 at 4:48 pm |
Thank you. but I’m Ruby newbie. And my English is terrible…
So, please give me some advice if you use them.
October 28, 2007 at 12:23 pm |
Can I upload my PDF to iPhone with iBrickr software???
October 31, 2007 at 5:44 pm |
I think you can, but I’m not sure if then you could upload it via the Safari browser or attach it via Apple mail program.
March 5, 2008 at 6:14 pm |
Cool stuff, I just tried this on my iPhone.
It seems very slow and I got a HTTP 500 error.
March 5, 2008 at 9:32 pm |
You may have a hit the server at a bad time. The Ruby on Rails app is running on a shared server and it may have been down at the time. Try it again, I just did and is working fine now. Thanks.
July 19, 2008 at 2:23 pm |
Nice blog, i have added it to my favourites, greetings