public function ServicesClientConnection::action in Services Client 7
Same name and namespace in other branches
- 7.2 services_client_connection/include/connection.inc \ServicesClientConnection::action()
Execute action on remote resource
Parameters
$resource: Resource type i.e. 'user' or 'node'
$action: Action name i.e. 'login' or 'publish'
$data: Associative array of additional data that should be passed to call
$options: Extra options of request
File
- services_client_connection/
include/ connection.inc, line 343 - Main services client connection class which exposes simple API
Class
- ServicesClientConnection
- @file Main services client connection class which exposes simple API
Code
public function action($resource, $action, $data = array(), $options = array()) {
$this->http_request = $this
->createRequest(array(
'resource' => $resource,
'action' => $action,
'data' => $data,
));
return $this
->processRequest()->data;
}