Tuesday, December 13, 2011

Imified API - using C#

Recently I had to do an imified bot implementation for one of our products, and it was damn cumbersome to get the api's working, although the PHP code just works fine as they provide on the website www.imified.com


I first tried trapping the php code's httprequest in the httpanalyzer and fiddler, but as it was php code doing a httpPOST, i couldn't just get it, So i created my own handler, changed the url to that handler and dumped the HTTPRequest; i found that the authorization has to be sent in HEADER, and not only that, it also has to be base64 encoded.

update - This API was recently made live at github as Imified C# Library

Here's how i implemented one of the functions of the API.

There was an error in this gadget