Directi API

March 11th, 2006 | Tags:

It’s been a fun couple of days playing with the directi API. I started off totally confused unable to figureout anything. But that always happens when you encounter a new API which you have never used before. Lack of examples on how to use the API on google didn’t help either.

The API documentation is quite complete, it’s written with javadocs (if i’m not mistaken). It lists out all the classes and the methods with decent explanations for all of them. There is a sever lack of exceptions though. Considering the number of errors that can popup while trying to do something that involves registering of domain names, managing contacts, customers, transferring of domains, changing nameservers and what not, ther API could have definitely used more exceptions, it’s hard to figure out what you’re missing when the result is just a userException. The backend of the API is programmed in Java so throwing more exceptions shouldn’t be a problem. The documentation, while complete, is wrong in some areas. For one a couple of functions list inputs should be passed as strings when the functions actually require java HashTable’s, whatever those are. The docs also do a piss poor job of explaining to the user how to pass values to functions which convert strings to hash tables or vectors.

My first feeling about the API, after I figured out the mistakes in the docs, was that it was good, it did what it was supposed too pretty well but then as I started going deeper and deeper I got the feeling that maybe directi had oversimplified it. Granted it’s complete but it’s just a tad …. bulky so to speak.

A little tip, and it took me a couple of hours to figure this one out, the core API is what contains customer management files so you need it as well if you plan to manage your customers through it as well. All in all, I had fun playing witht he API and if nothing else, it taught me something I could use in the future. :-)

As wlays feel free to contact me or post here with questions, suggestions and comments.

Share and Enjoy:
  • del.icio.us
  • Google Bookmarks
  • DZone
  • Reddit
  • Digg
  • Facebook
  • Netvibes
  • StumbleUpon
  • Technorati
  • LinkedIn
  • MySpace
  • Print
  • Slashdot
  • Share/Bookmark

No related posts.

  1. Chris
    January 14th, 2008 at 01:58
    Reply | Quote | #1

    Do you know if there a function in the api that could be used to update a domain’s transfer status ?

  2. May 29th, 2008 at 01:32
    Reply | Quote | #2

    hi, if you don’t mind, could you give a sample code of directi API?please I’m very need it so much.

    Thank you,

  3. Chad
    November 2nd, 2008 at 09:40
    Reply | Quote | #3

    Gaurav,

    I’ve been trying to get this API working for about 4 days, I’m not that keen on SOAP. Mainly I just need the function to lookup what domains are available, register new domains, and setup new user accounts.

    I’ve been posting all over the internet with no help yet found, I even offered to pay, offer still stands.

    Anyway, if you could send me some of your code that would be excellent, I’m trying to use PHP, my specialty.

  4. November 29th, 2009 at 00:22
    Reply | Quote | #5

    Is there a way to integrate my directi supersite in joomla in the native way? I mean, sharing the users. Maybe through jfusion plugin or at least something similar to openID. Most important: supersite users to be logged in joomla.