mojowill Posted January 18, 2011 Share Posted January 18, 2011 I can see the documentation for API Functions, is there a way of calling these functions directly from the Addon Modules without using the API (as I'm not coming from outside WHMCS) 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 18, 2011 Share Posted January 18, 2011 Nope. I opened a ticket about this a few months ago. 0 Quote Link to comment Share on other sites More sharing options...
mojowill Posted January 18, 2011 Author Share Posted January 18, 2011 In this thread http://forum.whmcs.com/showthread.php?t=35102 tsiedsma refers to WHMCS functions?? 0 Quote Link to comment Share on other sites More sharing options...
24khost Posted January 19, 2011 Share Posted January 19, 2011 (edited) whmcs functions available to use in the new addon module system. [removed] Edited January 19, 2011 by 24khost 0 Quote Link to comment Share on other sites More sharing options...
mojowill Posted January 20, 2011 Author Share Posted January 20, 2011 ok where on earth did you find that? and is there any accompanying docs? 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 20, 2011 Share Posted January 20, 2011 ok where on earth did you find that? and is there any accompanying docs? Yes, this.. I knew about things like select_query() full_query(), logactivity(), etc.. but thats a whole lot of stuff. Where's the documentation? 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted January 20, 2011 Share Posted January 20, 2011 PHP has a function that can print out all the names of the available functions as well as variables 0 Quote Link to comment Share on other sites More sharing options...
mojowill Posted January 21, 2011 Author Share Posted January 21, 2011 would be nice to have some proper documentation that would really help addon development! 0 Quote Link to comment Share on other sites More sharing options...
24khost Posted January 21, 2011 Share Posted January 21, 2011 Hey i just printed the loaded functions To figure out how to use them is another story. Still trying to figure out how to use the reflection class to find out the arguments that are needed. 0 Quote Link to comment Share on other sites More sharing options...
24khost Posted January 21, 2011 Share Posted January 21, 2011 anybody figured out how to use the reports system in the addons? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted January 21, 2011 WHMCS CEO Share Posted January 21, 2011 Functions from our encoded files are not intended to be used by third parties, hence no documentation. There are various functions you can find examples of in the reports and other unencoded files that come with WHMCS which you are free to use if you can figure them out but the API is the only supported way of performing operations within WHMCS as otherwise you are unlikely to be including all the necessary files/defining necessary variables/etc.. and that is likely to lead to problems. Matt 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 22, 2011 Share Posted January 22, 2011 Functions from our encoded files are not intended to be used by third parties, hence no documentation. There are various functions you can find examples of in the reports and other unencoded files that come with WHMCS which you are free to use if you can figure them out but the API is the only supported way of performing operations within WHMCS as otherwise you are unlikely to be including all the necessary files/defining necessary variables/etc.. and that is likely to lead to problems. Matt I think the main issue here is we cannot use the API locally without first logging in (remotely) to the API. This is highly inefficient. It seems logical that we should be able to access these functions locally for developing addon modules. 0 Quote Link to comment Share on other sites More sharing options...
mojowill Posted January 24, 2011 Author Share Posted January 24, 2011 Definitely agree on that point, using the API makes sense if integrating with third party applications however when we are already working within the WHMCS framework it seems silly to go back out to come back in?? 0 Quote Link to comment Share on other sites More sharing options...
24khost Posted January 25, 2011 Share Posted January 25, 2011 So basically we can't use alot of the built in functions to do things that have already been written we have to reinvent the wheel. 0 Quote Link to comment Share on other sites More sharing options...
Dreamz Posted June 8, 2011 Share Posted June 8, 2011 Coarse not... WHMCS is the most closed off, most anti-do-anything with it product we have ever used. I swear WHMCS is owned by Apple the way they close off everything. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted June 8, 2011 Share Posted June 8, 2011 Coarse not... WHMCS is the most closed off, most anti-do-anything with it product we have ever used. I swear WHMCS is owned by Apple the way they close off everything. The latest version implemented local API calls.. And they're really not that bad, they're just protecting their property, which is understandable. I've been sent WHMCS code for normally closed source stuff in the past without much trouble. It just really depends on what you need. 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.