Ivan_10 0 Newbie Poster

Hello there, i have problems with { "error": "invalid_grant", "error_description": "Bad Request" } " curl post request to https://www.googleapis.com/oauth2/v4/token
I can't obtain new access_token...

Here is my code:

// These come from your client_secret.json file
$clientID = "6590728998701b5184dev3d16dhgphu7b12me015bo9v.apps.googleusercontent.com";
$clientSecret = "pKAISh1d10k4vP7r1fDX20pJ";
$token_uri = 'https://www.googleapis.com/oauth2/v4/token';

// Build the URLEncoded post data
$postFields = http_build_query(array( 
 'refresh_token' => '1\/LrjbtpDRP1rYF2rFF3Kczc5T5P0rYVsfWS3IaUqLVyg',
    'client_secret' => $clientSecret,
    'client_id' => $clientID,
    'grant_type' => 'refresh_token',

));

$ch = curl_init($token_uri);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, 1); 
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); 

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
    'Content-length:'.strlen($postFields).'',
    'Content-Type: application/x-www-form-urlencoded'
));

curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); 

$response = curl_exec($ch);

var_dump($response);

I'm pretty sure that i'm confused something about curl parameters or headers.
Thanks for any replies!