【问题标题】:How to call direct REST call on Google api php client library?如何在 Google api php 客户端库上调用直接 REST 调用?
【发布时间】:2014-04-09 00:48:09
【问题描述】:

这是否可以直接在新的 Google Api php 客户端库上调用 post、put、get、delete 方法。例如在 Zend gdata 中提供 获取(网址), Post(URL,content body) 我需要这样调用

【问题讨论】:

    标签: php oauth-2.0 google-api google-api-php-client zend-gdata


    【解决方案1】:

    使用Google_Http_Request:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-20
      • 1970-01-01
      相关资源
      最近更新 更多