如何使用google + API发表评论或回复评论?
我试过了:
$service = new Google_Service_PlusDomains($client);
try {
$activity = new Google_Service_PlusDomains_Activity();
$activity->setObject($text);
$activity->setActor($this->id);
$activity->setTitle($text);
$reply = $service->activities->insert('me',$activity);
} catch (Exception $e) {
print 'An error occurred: ' . $e->getMessage();
}
但它不起作用,没有发表评论或发帖。