Connect API Component Updated

Posted on Apr 01, 2008

At least a year ago I was asked to create a means of accessing reporting data within Connect (which I think was still transitioning from being Breeze at the time). I posted about it figuring few if any people actually cared to use it. Nonetheless, someone was interested but was hoping to use the API for creating users and meetings which relied on methods I had not yet implemented. Thankfully, every request to the Connect API is very similar and I had built a means of easily adding new method implementations into the component (some of them are just a few lines), so it didn't take long to actually add it (and I say "not long" in terms of actual hours...it did take me forever to find the time to get around to it).Anyway, this version has been gathering "virtual" dust on my computer lately as well but was revived by someone else approaching me with an interest in it. Well, I figure since there are at least two people interested, maybe its worth releasing the updated version... The new version has added support for 7 new functions related to the steps required to create a user account and create a meeting. I haven't created any real documentation at this point (I still think the audience is very limited but I am open to continuing to expand this project). Nonetheless, here is an example of how you would use the component to create a new user:

<cfset connectAPI = createobject("component","com.connectAPI").init("http://my_connect_url/api/xml","my_username","my_password") /> <P>
<cfset addUsers = breezeAPI.principalUpdate("first_name","last_name","login@email.com","password","email@email.com") /> <cfdump var="#addUsers#">

Anyway, you can download the updated component at RIAForge. If you have any feedback on this component or you have managed to put it to good use, I would love to hear about it.

Comments

Steve Soars Thanks for the update Brian, it comes at just the right time. We are just in the process of linking the breeze server into our own intranet and website. Now i just need to figure out how to connect the dots to make it work :)

Cheers
Steve

Posted By Steve Soars / Posted on 04/01/2008 at 6:22 AM


Brian Klaas Thanks for updating this Brian! There's so few resources for Connect integration with any language or system, so it's great that you're contributing.

Posted By Brian Klaas / Posted on 04/01/2008 at 7:46 AM


chris Could you give an example of returning a user's list of courses by passing in a user ID?

Thanks, this is the best resource that I have found on ColdFusion - Connect integration.

Posted By chris / Posted on 05/31/2008 at 5:27 AM


Brian Rinaldi @chris - I don't recall the specifics but I would look up the API docs at Adobe and I have a match for many of those methods in my component. If the method doesn't already exist, if you look at the source of my component you can see that its built to make it easy to extend (the specifics of calling the API are abstracted).

Posted By Brian Rinaldi / Posted on 06/02/2008 at 6:09 PM


Write your comment



(it will not be displayed)





About

My name is Brian Rinaldi and I am the Web Community Manager for Flash Platform at Adobe. I am a regular blogger, speaker and author. I also founded RIA Unleashed conference in Boston. The views expressed on this site are my own & not those of my employer.