public function ServicesClientConnection::delete in Services Client 7.2
Same name and namespace in other branches
- 7 services_client_connection/include/connection.inc \ServicesClientConnection::delete()
Delete data from remote endpoint.
Parameters
string $resource: Resource type like 'node' or 'user'
int $id: Id of remote resource
Return value
Response from remote API
File
- services_client_connection/
include/ connection.inc, line 299 - Main services client connection class which exposes simple API
Class
- ServicesClientConnection
- @file Main services client connection class which exposes simple API
Code
public function delete($resource, $id = NULL) {
$this->http_request = $this
->createRequest(array(
'resource' => $resource,
'id' => $id,
'action' => 'delete',
));
return $this
->processRequest()->data;
}