Dice Posted April 25, 2010 Share Posted April 25, 2010 We are in the process of developing a custom store based off Clients who purchase a specific product. Without diving into my details, is this at all possible with the current API? - Using the WHMCS templating system. I know we can simply create a module which will use the WHMCS templating System but does this grant us access to API use too? Or would we be better off looking through all the functions in your core files and doing includes when we need specific functions? The basic needs for me is. - the ability to add/edit/delete a product - the ability to add/edit/delete files to that product - the ability to add/edit/delete documentation Any info? 0 Quote Link to comment Share on other sites More sharing options...
Grizzlyware Josh Posted April 26, 2010 Share Posted April 26, 2010 Looking at the Wiki you cannot do any of those things... correct me if I'm wrong. http://wiki.whmcs.com/API:Functions I don't know if WHMCS will tell you which functions they have in each file, so you might have to do it yourself... 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted April 27, 2010 Share Posted April 27, 2010 for customapifunctions: * the name of the .php files in <whmcs_root>/includes/api/ without the .php at the end are the action names just add your own API functions 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted April 27, 2010 Share Posted April 27, 2010 for customapifunctions: * the name of the .php files in <whmcs_root>/includes/api/ without the .php at the end are the action names just add your own API functions Correct. For a few websites we've created custom API-functions so we had a lot more possibilities to show and do. For a few examples, see: http://forum.whmcs.com/showpost.php?p=147457&postcount=2 (examples are only for getting some information, but you can also do an SQL insert/delete/... ofcourse) 0 Quote Link to comment Share on other sites More sharing options...
HerrZ Posted April 28, 2010 Share Posted April 28, 2010 @m00: that is a response as xml string. for array response the whmcs standard response construction is like: echo "a=fuffig;b=faffig;c=lalala"; but it should always fit your personal needs 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.