JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrsetScopes([ Google_Service_Calendar::CALENDAR, ]); $client->setAuthConfig($authProfile['credentials_json']); if (config('google-calendar')['user_to_impersonate']) { $client->setSubject(config('google-calendar')['user_to_impersonate']); } return $client; } protected static function createOAuthClient(array $authProfile): Google_Client { $client = new Google_Client; $client->setScopes([ Google_Service_Calendar::CALENDAR, ]); $client->setAuthConfig($authProfile['credentials_json']); $client->setAccessToken(file_get_contents($authProfile['token_json'])); return $client; } protected static function createCalendarClient(Google_Service_Calendar $service, string $calendarId): GoogleCalendar { return new GoogleCalendar($service, $calendarId); } }