handzon Posted January 2, 2013 Share Posted January 2, 2013 Hi there, I need to extend the API to include the ability to view affiliate details, such as commission type and amount. Assuming I name my file "includes/api/getaffiliatedetails.php, with the $postfields['action'] set to "getaffililatedetails", am I able to use the database tools to retrieve the information of a user? I see a file in the root of WHMCS called "affiliatefunctions.php". Can I leverage anything from this file? Regards, Mike 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted January 3, 2013 Share Posted January 3, 2013 Hello Mike; Extending the WHMCS API is easy. Check out this post on how to do it: http://forum.whmcs.com/showthread.php?36321 I don't know much about the affiliatefunctions.php file, I would recommend creating your own database query instead of messing around trying to figure how that file works. You have complete access to what the dbconnect.php file loaded (Aka mysql_query functions). Hope that helps. 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.