Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public static function createAuthenticatedGoogleClient(array $config): Google_Client |
||
22 | { |
||
23 | $client = new Google_Client; |
||
24 | |||
25 | $client->setScopes([ |
||
26 | Google_Service_Calendar::CALENDAR, |
||
27 | ]); |
||
28 | |||
29 | $client->setAuthConfig($config['service_account_credentials_json']); |
||
30 | |||
31 | return $client; |
||
32 | } |
||
33 | |||
39 |