Google Calendar How to fix “You need to have writer access to this calendar”?How do you parse and process HTML/XML in PHP?How do you use bcrypt for hashing passwords in PHP?How to fix “Headers already sent” error in PHPLink to add to Google calendarGoogle Calendar API v3 404 for EventsNeed good example: Google Calendar API in JavascriptHow to Connect to a Google Public CalendarGoogle Calendar Sync 403 ForbiddenGoogle calendar + codeigniterGoogle Calendar API, class Google_Service
Why is it called a stateful and a stateless firewall?
How often is duct tape used during crewed space missions?
Why 1.5fill is 0pt
What does the "capacitor into resistance" symbol mean?
Output Distinct Factor Cuboids
Why is the year in this ISO timestamp not 2019?
What is the source of "You can achieve a lot with hate, but even more with love" (Shakespeare?)
What is the origin of the "being immortal sucks" trope?
Can a business put whatever they want into a contract?
Statistical tests for benchmark comparison
How to ensure that neurotic or annoying characters don't get tiring on the long run
What does the Free Recovery sign (UK) actually mean?
Amperage for electrolysis of water?
Are all men created equal according to Hinduism? Is this predominant western belief in agreement with the Vedas?
Delete empty subfolders, keep parent folder
Answer Not A Fool, or Answer A Fool?
Is there a generally agreed upon solution to Bradley's Infinite Regress without appeal to Paraconsistent Logic?
Wouldn't Kreacher have been able to escape even without following an order?
What does this Blight Tower UI mean?
Why don't airports use arresting gears to recover energy from landing passenger planes?
Permutations in Disguise
How to make my “custom integer type” perform better?
Beauville-Laszlo for schemes
What does "boys rule, girls drool" mean?
Google Calendar How to fix “You need to have writer access to this calendar”?
How do you parse and process HTML/XML in PHP?How do you use bcrypt for hashing passwords in PHP?How to fix “Headers already sent” error in PHPLink to add to Google calendarGoogle Calendar API v3 404 for EventsNeed good example: Google Calendar API in JavascriptHow to Connect to a Google Public CalendarGoogle Calendar Sync 403 ForbiddenGoogle calendar + codeigniterGoogle Calendar API, class Google_Service
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I'm trying to access & write my dummy calendar make new functionality of the website but something prevents me from making changes to my dummy calendar.
So far when I try to used this code:
$event = $calendar->calendars->get(xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com);
The result is similar to the Googles Calendar's API explore.
My Calendar API
$calendarId2 = 'xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com';
$jobname = "Tesla";
$joblocation = "USA";
$jobdescription = "Interview with Elon Musk.";
$startofjob = "2019-03-29T10:00:00.000+00:00";
$endofjob = "2019-03-30T18:00:00.000+00:00";
try
$client = GetGoogleClient();
$calendar = new Google_Service_Calendar($client);
$event = new Google_Service_Calendar_Event(array(
'summary' => $jobname,
'location' => $joblocation,
'description' => $jobdescription,
'end' => array(
'dateTime' => $endofjob,
'timeZone' => 'Asia/Manila',
),
'start' => array(
'dateTime' => $startofjob,
'timeZone' => 'Asia/Manila',
),
));
$event = $calendar->events->insert($calendarId2, $event);
catch(Exception $e)
return ["error" => $e->getMessage()];
The message would always say this "You need to have writer access to this calendar." even though I have shared the calendar to the Service Account with permission Make changes to events
or Make changes and manage sharing
Additional info
function GetGoogleClient()
$client = new Google_Client();
//$client->setAuthConfig($credentialsFile);
$client->addScope("https://www.googleapis.com/auth/drive", Google_Service_Sheets::SPREADSHEETS);
$client->addScope("https://www.googleapis.com/auth/calendar");
//$client->addScope("https://www.googleapis.com/auth/calendar.events"); //same error result event with or without
$client->setAuthConfig(CONST_GOOGLE_SERVICE_ACCOUNT_KEY);
$client->setSubject(CONST_GOOGLE_SERVICE_ACCOUNT_EMAIL);
$client->useApplicationDefaultCredentials();
return $client;
php google-calendar-api slim
add a comment
|
I'm trying to access & write my dummy calendar make new functionality of the website but something prevents me from making changes to my dummy calendar.
So far when I try to used this code:
$event = $calendar->calendars->get(xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com);
The result is similar to the Googles Calendar's API explore.
My Calendar API
$calendarId2 = 'xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com';
$jobname = "Tesla";
$joblocation = "USA";
$jobdescription = "Interview with Elon Musk.";
$startofjob = "2019-03-29T10:00:00.000+00:00";
$endofjob = "2019-03-30T18:00:00.000+00:00";
try
$client = GetGoogleClient();
$calendar = new Google_Service_Calendar($client);
$event = new Google_Service_Calendar_Event(array(
'summary' => $jobname,
'location' => $joblocation,
'description' => $jobdescription,
'end' => array(
'dateTime' => $endofjob,
'timeZone' => 'Asia/Manila',
),
'start' => array(
'dateTime' => $startofjob,
'timeZone' => 'Asia/Manila',
),
));
$event = $calendar->events->insert($calendarId2, $event);
catch(Exception $e)
return ["error" => $e->getMessage()];
The message would always say this "You need to have writer access to this calendar." even though I have shared the calendar to the Service Account with permission Make changes to events
or Make changes and manage sharing
Additional info
function GetGoogleClient()
$client = new Google_Client();
//$client->setAuthConfig($credentialsFile);
$client->addScope("https://www.googleapis.com/auth/drive", Google_Service_Sheets::SPREADSHEETS);
$client->addScope("https://www.googleapis.com/auth/calendar");
//$client->addScope("https://www.googleapis.com/auth/calendar.events"); //same error result event with or without
$client->setAuthConfig(CONST_GOOGLE_SERVICE_ACCOUNT_KEY);
$client->setSubject(CONST_GOOGLE_SERVICE_ACCOUNT_EMAIL);
$client->useApplicationDefaultCredentials();
return $client;
php google-calendar-api slim
add a comment
|
I'm trying to access & write my dummy calendar make new functionality of the website but something prevents me from making changes to my dummy calendar.
So far when I try to used this code:
$event = $calendar->calendars->get(xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com);
The result is similar to the Googles Calendar's API explore.
My Calendar API
$calendarId2 = 'xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com';
$jobname = "Tesla";
$joblocation = "USA";
$jobdescription = "Interview with Elon Musk.";
$startofjob = "2019-03-29T10:00:00.000+00:00";
$endofjob = "2019-03-30T18:00:00.000+00:00";
try
$client = GetGoogleClient();
$calendar = new Google_Service_Calendar($client);
$event = new Google_Service_Calendar_Event(array(
'summary' => $jobname,
'location' => $joblocation,
'description' => $jobdescription,
'end' => array(
'dateTime' => $endofjob,
'timeZone' => 'Asia/Manila',
),
'start' => array(
'dateTime' => $startofjob,
'timeZone' => 'Asia/Manila',
),
));
$event = $calendar->events->insert($calendarId2, $event);
catch(Exception $e)
return ["error" => $e->getMessage()];
The message would always say this "You need to have writer access to this calendar." even though I have shared the calendar to the Service Account with permission Make changes to events
or Make changes and manage sharing
Additional info
function GetGoogleClient()
$client = new Google_Client();
//$client->setAuthConfig($credentialsFile);
$client->addScope("https://www.googleapis.com/auth/drive", Google_Service_Sheets::SPREADSHEETS);
$client->addScope("https://www.googleapis.com/auth/calendar");
//$client->addScope("https://www.googleapis.com/auth/calendar.events"); //same error result event with or without
$client->setAuthConfig(CONST_GOOGLE_SERVICE_ACCOUNT_KEY);
$client->setSubject(CONST_GOOGLE_SERVICE_ACCOUNT_EMAIL);
$client->useApplicationDefaultCredentials();
return $client;
php google-calendar-api slim
I'm trying to access & write my dummy calendar make new functionality of the website but something prevents me from making changes to my dummy calendar.
So far when I try to used this code:
$event = $calendar->calendars->get(xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com);
The result is similar to the Googles Calendar's API explore.
My Calendar API
$calendarId2 = 'xxxxxx.com_dsjiub0krm61i5vu1mvee8rh9o@group.calendar.google.com';
$jobname = "Tesla";
$joblocation = "USA";
$jobdescription = "Interview with Elon Musk.";
$startofjob = "2019-03-29T10:00:00.000+00:00";
$endofjob = "2019-03-30T18:00:00.000+00:00";
try
$client = GetGoogleClient();
$calendar = new Google_Service_Calendar($client);
$event = new Google_Service_Calendar_Event(array(
'summary' => $jobname,
'location' => $joblocation,
'description' => $jobdescription,
'end' => array(
'dateTime' => $endofjob,
'timeZone' => 'Asia/Manila',
),
'start' => array(
'dateTime' => $startofjob,
'timeZone' => 'Asia/Manila',
),
));
$event = $calendar->events->insert($calendarId2, $event);
catch(Exception $e)
return ["error" => $e->getMessage()];
The message would always say this "You need to have writer access to this calendar." even though I have shared the calendar to the Service Account with permission Make changes to events
or Make changes and manage sharing
Additional info
function GetGoogleClient()
$client = new Google_Client();
//$client->setAuthConfig($credentialsFile);
$client->addScope("https://www.googleapis.com/auth/drive", Google_Service_Sheets::SPREADSHEETS);
$client->addScope("https://www.googleapis.com/auth/calendar");
//$client->addScope("https://www.googleapis.com/auth/calendar.events"); //same error result event with or without
$client->setAuthConfig(CONST_GOOGLE_SERVICE_ACCOUNT_KEY);
$client->setSubject(CONST_GOOGLE_SERVICE_ACCOUNT_EMAIL);
$client->useApplicationDefaultCredentials();
return $client;
php google-calendar-api slim
php google-calendar-api slim
edited Mar 28 at 13:57
Shulz
asked Mar 28 at 12:59
ShulzShulz
521 silver badge14 bronze badges
521 silver badge14 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
"You need to have writer access to this calendar."
You may have shared it with the service account but did you give it write access? or just read access? I think you should double check this its normally the cause of the issue. Remember this is only going to give it access to this one calendar.
Also i think you should check your scopes just use
$client->addScope("https://www.googleapis.com/auth/calendar");
I think they are clobbering each other. Take a step back make sure calendar works then add your drive stuff
I did gave permission to the service account set toMake changes to events
but still the error persist. For some reason sometimes when I add the service account with permission set toMake changes to events
after how many mins/hrs when I view it again the permission becomesSee all event details
and the other two options are disabled. Is this a bug or feature?
– Shulz
Mar 28 at 14:18
Not one that i have ever seen I would question if someone else is changing your settings. Mine has been set for years.
– DaImTo
Mar 28 at 14:21
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55398300%2fgoogle-calendar-how-to-fix-you-need-to-have-writer-access-to-this-calendar%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
"You need to have writer access to this calendar."
You may have shared it with the service account but did you give it write access? or just read access? I think you should double check this its normally the cause of the issue. Remember this is only going to give it access to this one calendar.
Also i think you should check your scopes just use
$client->addScope("https://www.googleapis.com/auth/calendar");
I think they are clobbering each other. Take a step back make sure calendar works then add your drive stuff
I did gave permission to the service account set toMake changes to events
but still the error persist. For some reason sometimes when I add the service account with permission set toMake changes to events
after how many mins/hrs when I view it again the permission becomesSee all event details
and the other two options are disabled. Is this a bug or feature?
– Shulz
Mar 28 at 14:18
Not one that i have ever seen I would question if someone else is changing your settings. Mine has been set for years.
– DaImTo
Mar 28 at 14:21
add a comment
|
"You need to have writer access to this calendar."
You may have shared it with the service account but did you give it write access? or just read access? I think you should double check this its normally the cause of the issue. Remember this is only going to give it access to this one calendar.
Also i think you should check your scopes just use
$client->addScope("https://www.googleapis.com/auth/calendar");
I think they are clobbering each other. Take a step back make sure calendar works then add your drive stuff
I did gave permission to the service account set toMake changes to events
but still the error persist. For some reason sometimes when I add the service account with permission set toMake changes to events
after how many mins/hrs when I view it again the permission becomesSee all event details
and the other two options are disabled. Is this a bug or feature?
– Shulz
Mar 28 at 14:18
Not one that i have ever seen I would question if someone else is changing your settings. Mine has been set for years.
– DaImTo
Mar 28 at 14:21
add a comment
|
"You need to have writer access to this calendar."
You may have shared it with the service account but did you give it write access? or just read access? I think you should double check this its normally the cause of the issue. Remember this is only going to give it access to this one calendar.
Also i think you should check your scopes just use
$client->addScope("https://www.googleapis.com/auth/calendar");
I think they are clobbering each other. Take a step back make sure calendar works then add your drive stuff
"You need to have writer access to this calendar."
You may have shared it with the service account but did you give it write access? or just read access? I think you should double check this its normally the cause of the issue. Remember this is only going to give it access to this one calendar.
Also i think you should check your scopes just use
$client->addScope("https://www.googleapis.com/auth/calendar");
I think they are clobbering each other. Take a step back make sure calendar works then add your drive stuff
answered Mar 28 at 13:55
DaImToDaImTo
51k12 gold badges80 silver badges271 bronze badges
51k12 gold badges80 silver badges271 bronze badges
I did gave permission to the service account set toMake changes to events
but still the error persist. For some reason sometimes when I add the service account with permission set toMake changes to events
after how many mins/hrs when I view it again the permission becomesSee all event details
and the other two options are disabled. Is this a bug or feature?
– Shulz
Mar 28 at 14:18
Not one that i have ever seen I would question if someone else is changing your settings. Mine has been set for years.
– DaImTo
Mar 28 at 14:21
add a comment
|
I did gave permission to the service account set toMake changes to events
but still the error persist. For some reason sometimes when I add the service account with permission set toMake changes to events
after how many mins/hrs when I view it again the permission becomesSee all event details
and the other two options are disabled. Is this a bug or feature?
– Shulz
Mar 28 at 14:18
Not one that i have ever seen I would question if someone else is changing your settings. Mine has been set for years.
– DaImTo
Mar 28 at 14:21
I did gave permission to the service account set to
Make changes to events
but still the error persist. For some reason sometimes when I add the service account with permission set to Make changes to events
after how many mins/hrs when I view it again the permission becomes See all event details
and the other two options are disabled. Is this a bug or feature?– Shulz
Mar 28 at 14:18
I did gave permission to the service account set to
Make changes to events
but still the error persist. For some reason sometimes when I add the service account with permission set to Make changes to events
after how many mins/hrs when I view it again the permission becomes See all event details
and the other two options are disabled. Is this a bug or feature?– Shulz
Mar 28 at 14:18
Not one that i have ever seen I would question if someone else is changing your settings. Mine has been set for years.
– DaImTo
Mar 28 at 14:21
Not one that i have ever seen I would question if someone else is changing your settings. Mine has been set for years.
– DaImTo
Mar 28 at 14:21
add a comment
|
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55398300%2fgoogle-calendar-how-to-fix-you-need-to-have-writer-access-to-this-calendar%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown