Forum Discussion

James_124570's avatar
James_124570
Icon for Nimbostratus rankNimbostratus
Jun 01, 2015

What scripting language is best with iControl Rest

Hello All,

 

What is the best scripting language to use with iControl Rest. I am not very familiar with cURL or C, so I am open, just wanted to know what others are using.

 

Thanks!

 

2 Replies

  • I think it depends on what your goal is, whether it be an application, script, or website.

    For scripts, I tend to use PowerShell mostly because it's quick to grab what I need and you can use the

    Invoke-RestMethod
    command which will automatically bring the JSON response back as an object, making it easier to work with.

    If you're looking at web stuff, I generally use jQuery (or similar libraries for Ajax calls).

    Also, if you're just looking to test some iControlRest stuff, you could use a Chrome extension called Postman. It's pretty useful for testing REST calls.

    Hope this helps.

  • I'll ditto Michael's comments. It depends on your platform. If you are on Windows, the PowerShell is a good choice. For non-windows systems, it depends on your skills. I'm like Node.js lately as has JSON/etc built in but you can use JSON packages in most of the other main languages out there (perl, python, etc).

     

    If you just want to use a shell (sh, bash, etc) with curl, then the jq command line tool is pretty helpful in parsing JSON responses. http://stedolan.github.com/jq

     

    Good luck!