We’ve been hard at work making it easier for 3rd party developers to access RIPL features. Our API set is pretty extensive, but we wanted to ease the burden of implementation, and have created the RIPL JavaScript Library to that end.
Usage is pretty simple… just add the RIPL JavaScript library to your Web site by including the appropriate script tag:
<script type="text/javascript" src="http://www.ripl.com/api/1/jslib/ripllib.js"></script>
From there, all you need to do is add a new DIV to a Web page like this:
The structure is pretty simple. It is a div. Its CSS class is ‘ripl_renderer’, which is important because the RIPL library will look through the page to determine which items it needs add RIPL content to.
From there, we add a few display properties:
- target_login – This is the user login of the appropriate user. In this case, we’re using my login (juanune).
- method – This is the RIPL API we’re going to use to get data for. ‘ripl.user.getOwnedContent’ will retreive all of my content.
Add a couple of specific rendering things (background color, etc), and voila… we get this:
Cool huh? …and all created with developers only needing to add a single HTML element.
I’ll be posting another article soon on how you can go in and change the appearance of the list.