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;








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;










share|improve this question
































    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;










    share|improve this question




























      0












      0








      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;










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 13:57







      Shulz

















      asked Mar 28 at 12:59









      ShulzShulz

      521 silver badge14 bronze badges




      521 silver badge14 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0

















          "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.



          enter image description here



          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






          share|improve this answer

























          • 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










          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
          );



          );














          draft saved

          draft discarded
















          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









          0

















          "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.



          enter image description here



          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






          share|improve this answer

























          • 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















          0

















          "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.



          enter image description here



          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






          share|improve this answer

























          • 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













          0














          0










          0










          "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.



          enter image description here



          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






          share|improve this answer














          "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.



          enter image description here



          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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 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

















          • 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
















          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








          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.




















          draft saved

          draft discarded















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현