Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Route list error #2

Open
youngchung68 opened this issue Mar 6, 2017 · 1 comment
Open

Route list error #2

youngchung68 opened this issue Mar 6, 2017 · 1 comment

Comments

@youngchung68
Copy link

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
Copy link

Dos4dev commented Jun 29, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants