Hack Forums
[PHP] API intergration - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183)
+---- Thread: [PHP] API intergration (/showthread.php?tid=5052707)



API intergration - iamvexatious - Nov 10, 2015

Does WHMCS support API integration?

The API has calls for everything (Account, Creation, Pull account lists, Service lists, assign user service etc..)

Most of the API is just Content-Type : application/json

What would be the best way about going about this? Just grab a HTML template and do it myself?

Does anyone know if you can get wordpress to do this?

Also can anyone recommend a setup for this, Someone recommended using Ruby but I've never worked with it.


* - MvPxC - Nov 10, 2015

Are you just making a cURL call to get the data via Json? If you have the data in json then you can decode (encode?) it to a PHP Array.


* - iamvexatious - Nov 10, 2015

(Nov 10, 2015 08:28 AM)MvPxC Wrote:  Are you just making a cURL call to get the data via Json? If you have the data in json then you can decode (encode?) it to a PHP Array.

Yeah, I'm using Rest Easy console and all the tests work,I get the info I need, How do I make the actual call on my webpage and make it show?


Do you reckon a php codeacademy class and their API class would teach me how all this works? (https://www.codecademy.com/learn/php & https://www.codecademy.com/apis, They have course overview) Thanks.