Freepark Refresh Token

Resource URL

https://auth.freepark.co/refresh/token

Parameters

ParameterDescriptionOptionalDefault
grant_type refresh_token False False
refresh_token Refresh Token False False

Example

POST https://auth.freepark.co/refresh/token

Request

PHP Example
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"https://auth.freepark.co/refresh/token");
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/x-www-form-urlencoded' ,"Authorization: Basic ".base64_encode(CLIENT_ID:CLIENT_SECRET)));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"grant_type=refresh_token&refresh_token=xxxxxxxx");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec ($ch);
echo $response;

Response

{
    "access_token": "6b8bf3616a40d7302b942cdaa5358a4cc1b6f488",
    "expires_in": 3600,
    "token_type": "Bearer",
    "scope": null,
    "refresh_token": "5717d520747fb9090606076d12ffca45cff5be69"
}

Error Response

{
    "error": "invalid_request",
    "error_description": "Missing parameter: "refresh_token" is required"
}

Resource Information

Rate Limited False
Response Format JSON
Authentication 1