Since this is not posted anywhere and it took some back-and-forth via a ticket to figure it out, I want to post this here in case somebody else runs into the same problem I did (I’m not a software developer by any means so this might be obvious for the rest of you but it wasn’t for me so I’m posting this for the other novices out there). If you call the API from the same server as Interworx and instead of getting anything you get a “No data returned” message in your browser, you’ll need to make a change to Apache. Here’s a quote from Nathan who handled my ticket:
I just brought this to the attention of the developers and they pointed out that during the creation of a SiteWorx account httpd is restarted, so that’s why the return value fails when the account is successfully created. If the script resides on the same server that the SiteWorx account is being created on you end up with this error. The solution is to enable graceful restarts for apache in ~iworx/iworx.ini.
Under [apache] change force_graceful=“0” to “1”.
I will also submit a developer ticket regarding this behavior to make this more intuitive.
Thinking back, I should run my client management script from a different server but for now I’m running it all from one server (except SMTP, qmail isn’t very shared hosting environment friendly).