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ドメインのドキュメントを参照していますが、PHPの例はありません(JavaとRubyのみ): https://developers.google.com/+/domains/circles/adding

4

0 に答える 0