Программно добавлять людей в Circle, используя Google Plus Domain API?

Я пытаюсь добавить людей в круг с помощью этого кода:

$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

0 ответов

Другие вопросы по тегам