0
我正在使用google + api檢索社區帖子列表。刪除Google+社區活動列表。
$data = file_get_contents('https://www.googleapis.com/plus/v1/people/111449227367642341024/activities/public?key={YOUR_API_KEY}');
$response = json_decode($data, true);
echo '<pre>';
print_r($response);
但它拋出錯誤,如
failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden
我也已通過API密鑰,但仍無法正常工作。
這是社區ID。我可以發貼嗎? –
不,你不能閱讀社區的帖子。正如文檔所述,它針對特定的「用戶」。沒有辦法爲社區獲取數據。 – DaImTo
好的。我可以收藏收藏嗎? –