2

我尝试通过以下代码将人员添加到圈子中:

$this->google = new \Google_Service_PlusDomains($this->client);

......

$this->google->circles->addPeople(
    $circleId, ['userId' => $userId]
);

我得到错误:

Error calling PUT https://www.googleapis.com/plusDomains/v1/circles/{Circle_ID}/people?userId={USER_ID}:

(403) The operation is not allowed because the requested people are not part of the domain

我在 Google Plus Domain 文档中看到,但它没有 php 示例(只有 java 和 ruby​​):https ://developers.google.com/+/domains/circles/adding

4

0 回答 0