How to get a new Access Token from a Refresh Token using cURL?
In PHP, I would do something like this:
$client = new Google_Client();
$client->addScope(Google_Service_Analytics::ANALYTICS_READONLY);
$client->refreshToken($refresh_token);
$access_token = $client->getAccessToken();
How to accomplish the same thing using cURL?
I was unable to find it from their documentation.