OkTeck Posted February 23, 2010 Share Posted February 23, 2010 Hey guys, I have WHMCS installed and am testing the API hooks and am trying to 'getclientproduts' based on this API manual: http://wiki.whmcs.com/API:Get_Clients_Products Why is it not nesting <product> nodes under <products> as the doc says? Instead, it seems to be returning multiple <id> nodes and such... this just makes me have to code more to get the job <product> nodes would have done for me. When I get my return from the web server and turn it into a SimpleXMLElement, I get the following element: SimpleXMLElement Object ( [action] => getclientsproducts [result] => success [clientid] => 72 [totalresults] => 2 [products] => SimpleXMLElement Object ( [id] => Array ( [0] => 53 [1] => 70 ) [orderid] => Array ( [0] => 0 [1] => 1 ) [pid] => Array ( [0] => 5 [1] => 1 ) [domain] => Array ( [0] => example.com [1] => example2.com ) [server] => Array ( [0] => 1 [1] => 1 ) [paymentmethod] => Array ( [0] => paypal [1] => paypal ) [firstpaymentamount] => Array ( [0] => 0.00 [1] => 0.00 ) [recurringamount] => Array ( [0] => 0.00 [1] => 0.00 ) [billingcycle] => Array ( [0] => Free Account [1] => Quarterly ) [nextduedate] => Array ( [0] => SimpleXMLElement Object ( ) [1] => 2010-01-19 ) [status] => Array ( [0] => Active [1] => Active ) [username] => Array ( [0] => restore [1] => galena ) [password] => Array ( [0] => SimpleXMLElement Object ( ) [1] => tgu5K61v2R ) [customfields] => Array ( [0] => SimpleXMLElement Object ( ) [1] => SimpleXMLElement Object ( ) ) ) ) Anyone? Am I doing it wrong? Regards, Jamie 0 Quote Link to comment Share on other sites More sharing options...
OkTeck Posted February 24, 2010 Author Share Posted February 24, 2010 Hello, is anyone out there that can consult with me in regards to this? Thanks, 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted February 24, 2010 WHMCS CEO Share Posted February 24, 2010 Open a ticket and we can supply you with a fix for this. Matt 0 Quote Link to comment Share on other sites More sharing options...
OkTeck Posted February 24, 2010 Author Share Posted February 24, 2010 Open a ticket and we can supply you with a fix for this. Matt Hi, I'm a developer working for a client of mine who has bought a copy of WHMCS. Can I open a ticket even if I don't have a bought copy? If not, maybe you can help me via private e-mail since I haven't access to the help desk? Thanks for your reply Matt, 0 Quote Link to comment Share on other sites More sharing options...
OkTeck Posted February 24, 2010 Author Share Posted February 24, 2010 Hi Matt, Please see ticket #142599. Thanks, 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.