I am using box API.
through Authentication i got Access Token(AT) and Refresh Token(RT).
After 1 hour AT is expired. Now i am requesting to server with current RT
Request:-
Post
https://api.box.com/oauth2/token
Params :-
1) grant_type
2) client_id
3) client_secret
4) refersh_token
Actual result is like this
{
access_token:new AT
refersh_token:new RT
.....
.....
}
but my result is
{
"error": "invalid_grant",
"error_description": "Refresh token has expired"
}
Please help me.
Thanks in Advance