google analytics custom plugin getting error invalid grant

$client = new Google_Client(); $client->setAuthConfigFile(plugin_dir_url( __FILE__ ) . ‘/client_secrets.json’); $client->setRedirectUri(‘urn:ietf:wg:oauth:2.0:oob’); $client->addScope(Google_Service_Analytics::ANALYTICS_READONLY); $client->setIncludeGrantedScopes(true); $client->setAccessType(‘offline’); $client->revokeToken(); $auth_url […]

No More Posts Available.

No more pages to load.