Jump to content

Question on API function


kurbot

Recommended Posts

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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated