2

I try to adding people to circle by this code:

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

......

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

I get the error:

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

I see in Google Plus Domain document, but It have not php example (just java and ruby): https://developers.google.com/+/domains/circles/adding

jww
  • 97,681
  • 90
  • 411
  • 885
Joshua Hansen
  • 405
  • 1
  • 8
  • 21

0 Answers0