webdevmatics / GoogleCalendarApi

27 stars 44 forks source link

Route list error #2

Open youngchung68 opened 7 years ago

youngchung68 commented 7 years ago

class gCalendarController extends Controller { protected $client;

public function __construct()
{
    $client = new Google_Client();
     $client->setAuthConfig('client_secret.json);
      ...
}

When route:list, File not exist error at setAuthConfig. error detail :[ InvalidArgumentException] file does not exist.

but when put it in setAuthConfig('./public/client_secret.json), no error but can not get api data.

Dos4dev commented 6 years ago

For me better set path without dot, like this setAuthConfig('/public/client_secret.json)