Dec
24
2008

Ribbit API - “Skype for the browser” : : Gareth Rodger

In my previous post “Ribbit Developer Competition : : Gareth Rodger” I pointed out Ribbit.com currently have a competition running to encourage development on their new API.

With very little spare time I wasn’t going to get involved in the competition, but after tinkering with the API i’ve found myself working on a small personal project…

My project goal is to allow for easy integration of Ribbit into your site without requiring the knowledge and software that is required for smooth, fast Flex development.

To accomplish this i’ve decided to take the user interface out of Flex leaving just the code to interact with the SWC Ribbit API file and then wrapped the whole thing in a Javascript API.

Using the ExternalInterface methods in Flex I can reveal important parts of the Ribbit API to Javascript whilst abstracting some of the legwork. I have also despatched all events to Javascript so it can keep correct state.

With this new Javascript API it’s now possible to make a call from your browser to any Ribbit user or phone number with 2 lines of javascript:

Ribbit.login('user','pass','appid','devid');
Ribbit.makeCall('+441234567890', '');

I’ve also wrapped the functionality to receive call events, so (and this bit amazes me) I can be using a web page (e.g. Facebook application) and if you were to call my Ribbit number +1 (805) 457 1688 my browser will ring and allow me to answer your call and converse with my standard microphone on my laptop!

I will release the application and source code shortly (providing the Ribbit guys are happy with that) then hopefully wrap it up in modules for Magento, Drupal and Wordpress.

No Comments

RSS feed for comments on this post. TrackBack URL

Sorry, the comment form is closed at this time.

Powered by WordPress | Aeros Theme | TheBuckmaker.com WordPress Themes