Код: Выделить всё
$client = new Google_Client();
$client->setClientId($client_id);
$client->setClientSecret($client_secret);
$client->setRedirectUri($redirect_uri);
$client->addScope(ALL_NON_RESTRICTED_CALENDAR_ROLES);
Код: Выделить всё
$service = new Google_Service_Calendar($client);
$cal = $service->calendars->get("GOOGLE_CALENDAR_ID");
Код: Выделить всё
Google\Service\Exception: {
"error": {
"errors": [
{
"domain": "global",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
Подробнее здесь: https://stackoverflow.com/questions/798 ... ted-scopes
Мобильная версия