PHP code example of niisan / laravel-oauth-google-calendar
1. Go to this page and download the library: Download niisan/laravel-oauth-google-calendar library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
niisan / laravel-oauth-google-calendar example snippets
private OauthCalendarService $oauthCalendarService;
public function __construct(OauthCalendarService $oauthCalendarService)
{
$this->oauthCalendarService = $oauthCalendarService;
}
class TokenRefreshedEvent
{
use Dispatchable, InteractsWithSockets, SerializesModels;
/**
* Create a new event instance.
*
* @return void
*/
public function __construct($user, array $token)
{
//
}
public function getEventList($user, $config): array;
public function createEvent($user, array $data): Google_Service_Calendar_Event;
public function deleteEvent($user, $event_id);