malin Posted July 21, 2018 Share Posted July 21, 2018 I saw WHMCS documentation use the curl: https://developers.whmcs.com/api/sample-code/ But I want to know does this have error handler? where to except the Exception? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted July 21, 2018 Share Posted July 21, 2018 Using WHMCS API from a PHP script via curl() is the same as using localAPI(). In both cases response parameters are always the same including errors. For example DomainRenew API command always returns error or success in the result parameter. It doesn't matter if you're using curl() or localAPI(). The same logic applies to all API commands. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.