lundi 25 février 2019

Google calendar api not showing the organizer name and sending notification emails - laravel

I'm using a laravel package for the google calendar api integration. In that i am able to create events with just attendees only. I've tried creating organizer but its not coming up. The following is the code i've used. The organizer name here defaults to the email from which the api credentials are created also the email notifications are not coming. The package I'm using is "spatie/laravel-google-calendar". Can anyone tell me what i'm doing wrong here.

Event::create([
               'name' => 'Latest Event dsfdsfsdfsdf',
               'location' => '800 Howard St., San Francisco, CA 94103',
               'description' => 'A chance to hear more about Google\'s developer products.',           
               'startDateTime' => Carbon\Carbon::now(),
               'endDateTime' => Carbon\Carbon::now()->addHour(),
               'sendNotifications' => true,
               'sendUpdates' => 'all',
               'organizer' => array('email' => 'test@gmail.com','displayName' => 'Darshan')
               'attendees' => array(
                array('email' => 'test@gmail.com','displayName' => 'Darshan', 'organizer' => true),
                array('email' => 'darshan@test.com','displayName' => 'Ryan')
              )
            ]); 



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire