pero Posted April 4, 2012 Share Posted April 4, 2012 Hello, I am currently using WHMCS system as user-mamngment system (among other things) for custom-made application - I read uid form session and client info is refreshed on each login (via hook) in internal database. However, we need more granular control over users and sub-accounts seemed like right thing. The problem is, hoverwer, that I don't know how to obtain sub-account which is currently logged in (uid is same for all sub-accounts of client). Since the application knows which sub-account is logged in (because there are restrictions what sub-accoutn can do in WHMCS) I wonder is there a way to obtain that in our application? Thx 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted April 4, 2012 Share Posted April 4, 2012 You could make a call to the GetContacts API function in WHMCS and check the subaccount field. http://docs.whmcs.com/API:Get_Contacts 0 Quote Link to comment Share on other sites More sharing options...
pero Posted April 5, 2012 Author Share Posted April 5, 2012 Thank you for your help. But I don't understand how can I get currently logged sub-account - this API call will give me list of all sub-accounts... 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.