Jump to content

Recommended Posts

Posted

Hello,

 

I am able to retrieve client settings via the following code:

$response = $api->get("clients", "get", array('client_id' => 28));


print_r($response->response());
print_r($response->errors());

However, I am unable to delete a client using an updated API call, is my syntax incorrect?

 

$response = $api->delete("clients", "delete", array('client_id' => 28));


print_r($response->response());
print_r($response->errors());

 

Posted

No errors were being generated, the response was null.

 

I was able to perform this action by using a different call:

$api->get("clients", "delete", array('client_id' => 23));
Posted

Not sure why the delete action did not work. I suspect the lack of an error may be due to Blesta not receiving the client_id parameter. However, POST would be a better alternative to DELETE than GET would.

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.

Loading...
×
×
  • Create New...