Refresh_Token 有效期是为30天,过期后可以调用获取 Access_Token 接口获取新的 Refresh_token 和 AccessToken,同时老的 Refresh_token 会过期。
{
"app_id": "{{app_id}}",
"app_secret":"{{app_secret}}",
"refresh_token":"{{access_token}}"
}
curl --location --request POST 'https://jingopenapi.jingsocial.com/v1/oauth2/token/refresh' \
--header 'Content-Type: application/json' \
--data-raw '{
"app_id": "202305171108447827375161344",
"app_secret":"c32501b33424473daebb9d43ccc37c57",
"refresh_token":""
}'
{
"request_id": "6f843be20b21c5e18b9825616b85b424",
"code": 0,
"msg": "success",
"data": {
"access_token": "535eda1d-a06e-42f9-958f-d244ae72b646",
"refresh_token": "fc5e86a1-81da-4715-a18f-8724ff1fd413",
"scope": "all",
"token_type": "bearer",
"expires_in": 4511
},
"timestamp": 1722583035263
}