Jump to content

Extending the API


handzon

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated