kurbot Posted October 20, 2010 Share Posted October 20, 2010 Hey Guys, I've been building a custom integrated system using the WHMCS API system which by the way is VERY nice and easy to work with. However i ran into a problem and Im not sure what the error is. When working with the Get Client Products API function, i get the following error I know my posts are working cause when printing them out they show up, plus the 'getclientdetails' works fine, seem the 'getclientproducts' doesn't exist. I'm going to show you the basic variables im calling without the API file that executes the curl request.. $data["action"] = "getclientsproducts"; $data["clientid"] = $_POST['clientID']; // Posting via a ajax backend post. Array ( [result] => error [message] => Command Not Found [] => ) can anyone else verify this error? or is there a typo in the action name? Let me know thanks 0 Quote Link to comment Share on other sites More sharing options...
m00 Posted October 20, 2010 Share Posted October 20, 2010 I'm running WHMCS 4.3.1 and the getclientsproducts API-call is just working for me. <?xml version="1.0" encoding="utf-8"?> <whmcsapi version="4.3.1"> <action>getclientsproducts</action> <result>success</result> <clientid>2</clientid> <totalresults>0</totalresults> </whmcsapi> 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted October 20, 2010 Share Posted October 20, 2010 Make sure you are using getclientsproducts and not getclientproducts 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted October 21, 2010 Share Posted October 21, 2010 Make sure you are using getclientsproducts and not getclientproducts Surely it should be called clientproducts, as it's the products *plural* or the client *singular* 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted October 21, 2010 Share Posted October 21, 2010 for what its worth, "get clients products" would be correct as "client's" is a possessive form, not a plural. 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted October 21, 2010 Share Posted October 21, 2010 for what its worth Function names should be about purpose not pedantry - it's still the products of one client Which doesn't help the OP of course - a quick test and I can confirm that getclientsproducts seems to work fine 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.