How to call direct REST call on Google api php client library?

540 views Asked by At

Is this any possible to call post,put,get,delete methods directly on new Google Api php client library . For example in Zend gdata provide get(URL), Post(URL,content body) I need to call like this

1

There are 1 answers

0
Vinicius Braz Pinto On BEST ANSWER

Use Google_Http_Request:

$request = new Google_Http_Request($url, $method, $headers, $postBody);
$client->execute($request);