I have :
$client = new \Google_Client();
$client->setApplicationName("Name");
$client->setDeveloperKey("key");
$client->setClientId("id");
$client->setClientSecret("codesecret");
$client->setScopes(array("https://www.googleapis.com/auth/calendar"));
$client->setRedirectUri("https://www.example.com/oauth2callback");
And I have this error "Error fetching OAuth2 access token, message: 'invalid_client'", how can I fix this? And I don't know how to get the token.