just_slavik Posted June 3, 2017 Share Posted June 3, 2017 Hi, I'm new with WHMCS, I tried to find any example how to pass data from WHMCS to external API web service. Please give me any simple example how to trigger on any action and pass data to external API ? Thank you in advance, hope it will help other developers to find answer for such obvious and simple question ) 0 Quote Link to comment Share on other sites More sharing options...
RadWebHosting Posted June 4, 2017 Share Posted June 4, 2017 A very common example of this is the relationship between cPanel servers and the WHMCS installation. You can find basic API information here: https://developers.whmcs.com/api/ 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted June 4, 2017 Share Posted June 4, 2017 if you need to request data remotely from WHMCS you need to use the API functions, but if you need to send data from WHMCS to external service/API the ActionHooks system can do that 0 Quote Link to comment Share on other sites More sharing options...
twhiting9275 Posted June 5, 2017 Share Posted June 5, 2017 Handling remote APIs can be done using the internal CurlCall function. You can use this to build your query There USED to be some decent docs on this, but someone decided to just be lazy and remove all the good docs, forwarding everything to development, without actually verifying that things were transferred over properly. I took a few minutes and verified that the function still works in 7.2.2, so you should have no problems using that, once you've obtained the variables you need from WHMCS using the API 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.