Friday, December 19th, 2008
Write your own Yahoo! BrowserPlus service with new SDK
Lloyd Hilalel and the Yahoo! BrowserPlus team have released a BrowserPlus SDK which allows you to easily create your own services:
We're extremely happy to announce the availability of the BrowserPlus SDK. This first SDK and the accompanying documentation gives you all the tools you'll need to start extending the web using BrowserPlus. Getting started is easy, you can hop over to our tutorial and write your first service in about 15 minutes.
In addition to the SDK, we've pushed a new platform version, 2.1.14, that fixes several bugs reported by all of you. We deeply appreciate your continued contributions and hope with the SDK and our ongoing process of open sourcing BrowserPlus we'll empower you to contribute even more to the project.
A Ruby example service is shown:
-
class MyGreatServiceInstance
def initialize(context)
end
def HelloWorld(transaction, args)
transaction.complete("Hello #{args['who']} from my great service!")
end
end
rubyCoreletDefinition = {
'class' => "MyGreatServiceInstance",
'name' => "MyGreatService",
'major_version' => 0,
'minor_version' => 0,
'micro_version' => 1,
'documentation' => 'A GREAT service.',
'functions' =>
[
{
'name' => 'HelloWorld',
'documentation' => "Say \"hello\" to the world",
'arguments' => [
{
'name' => 'who',
'type' => 'string',
'documentation' => 'who you want to say hello to',
'required' => true
}
]
}
]
}
There is also a new service released:
Welcome the new Zipper service to our collection! A big problem with some web apps today is being able to efficiently attach all file types. Zipper plays nicely with Uploader and lets you compress files or folders on the client before uploading them. This service should be considered alpha, and we look forward to your feedback and ideas on how to make this more useful. We've got lots of ideas of which way to take this service (lzma being first and foremost), but would love to hear your thoughts.












Leave a comment