cpass78 Posted December 8, 2011 Share Posted December 8, 2011 Hello all, Let me start off by saying i searched for api and it yielded no results (suppressing the flames before they begin ) Anyhow I am currently using whmcs in subdirectory strictly as a client portal and order staging area but my question is about the api usage. I have my site built around another framework and would like to call upon whmcs api to get some data and validation. Do I really have to open up a cURL request for every api call for whmcs that sits in a subdirectory? I hope not as that seems like a bit much for overhead. Any ideas are welcome and thank you. 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted December 8, 2011 Share Posted December 8, 2011 Yes, you do. This really isnt any different than most API's work. The only difference is you're not working with a pre-build class that does the curl connections for you. However, if you're calling the API from within a WHMCS page, you can use the localAPI() function. http://docs.whmcs.com/API:Internal_API 0 Quote Link to comment Share on other sites More sharing options...
cpass78 Posted December 16, 2011 Author Share Posted December 16, 2011 Ty laszlof for your reply, im implementing it and managed to get to get the validatelogin functioning properly. One more question on that subject, our application is built around codeignitor which is using non standard sessions. I think i have set the session data set appropriately for autologin to whmcs but its not working, any tips? # Set a regular $_SESSION for autologin to client area $_SESSION['uid'] = $de['userid']; $_SESSION['upw'] = $va['passwordhash']; Thank you 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.