Google\Cloud\RestTrait::send PHP Method

send() public method

Delivers a request built from the service definition.
public send ( string $resource, string $method, array $options = [] ) : array
$resource string The resource type used for the request.
$method string The method used for the request.
$options array [optional] Options used to build out the request.
return array
    public function send($resource, $method, array $options = [])
    {
        $requestOptions = array_intersect_key($options, ['httpOptions' => null, 'retries' => null]);
        return json_decode($this->requestWrapper->send($this->requestBuilder->build($resource, $method, $options), $requestOptions)->getBody(), true);
    }