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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...