Skip to content

API Wrappers updated

Dear Reader,

Today I spent some time updating my API Wrapper repo on GitHub. This is a simple series of wrappers written in PHP for APIs I find interesting or have decided to play with.

Today’s additions are:

  • integration

    Mashery adds new APIs to their family on a regular basis and occasionally I go out there and look at what is available and what looks interesting to me. looks interesting. The wrapper gives you a simple interface to make a call to their library. Like the other API wrappers in the collection, it returns you a SimpleXML object to do with as you see fit.

    If you are going to play with this one then you need to register and get an API key. The README.markdown has a sample snippet of code to get you started and their developer docs don’t suck.

    Drop me an email if you want my complete GoodGuideTest.php. it’s not really a test suite, but it lets me play with it.

  • Transport_File

    So it seems that PHP 5.4 RC3 on Windows is not complied with curl natively. I took this as a sign that it was time to write another transport. (Yeah, I could have enabled the DLL, where’s the fun in that?) Transport_File operates just like Transport_Curl, you call it with the URL, parameters and the method to use and it does the rest. I’ve got some testing to do on it but it works fine for simple GET calls.

    My goal with Transport_File is to get it fully compatible with all 4 major HTTP verbs so that it will be interchangeable with Transport_Curl.

If you play with APIs for fun, please fork this and help me test them; pull requests are always welcome. :)

Until next time,
I <3 |<