0
我試圖使用谷歌API的PHP客戶端SDK以及谷歌加API服務。文件不是很清楚。我是否搜索活動?我需要獲得一個oAuth令牌來執行我想要的操作嗎?搜索谷歌+ API的公共帖子和頁面
更新:現在使用
$params = array(
'orderBy' => 'best',
'maxResults' => '20',
'query' => 'Google+ API'
);
$results = $plus->activities->search($params);
回報
Array
(
[kind] => plus#activityFeed
[etag] => "5NTCbsXue5u92XtxuV0QeM_x9B4/58mHUy-IErItGIABIAhYhhUjJ-M"
[selfLink] => https://www.googleapis.com/plus/v1/activities?query&maxResults=10
[title] => Plus Search
[updated] => 2012-09-27T14:03:35.132Z
[id] => tag:google.com,2010:es-search-feed:z80ghJXVZe9m59_5-Ydk2g
[items] => Array
(
)
)
我沒有得到任何結果返回。更新問題返回什麼。同時得到一個警告:rawurlencode()期望參數1是字符串,給定數組給定的谷歌/谷歌API的PHP客戶端/ src/io/apiREST.php,第129行] – madphp