【发布时间】:2014-06-23 02:38:58
【问题描述】:
我想通过 PHP 页面使用来自 Google Insight API 的数据。 (这里是documentation)
例如,我如何使用 Google Insight 返回的“numberJsResources”?
$jsonString = curl "https://www.googleapis.com/pagespeedonline/v1/runPagespeed?url=http://code.google.com/speed/page-speed/&key=MyAPIKey";
$obj = json_decode($jsonString);
echo $obj->responseCode;
【问题讨论】:
标签: php json google-api