rest - Accessing Box Api using Refresh token -


how can access box api using refresh token generated? have followed steps generate access token , refresh token cannot find anywhere how can access api using refresh token.

this have right now:

curl -x -h "authorization: bearer <access-token>" "https://api.box.com/2.0/folders/0" 

i not able :

curl -x -h "authorization: <refresh-token>" "https://api.box.com/2.0/folders/0" 

or

curl -x -h "authorization: bearer <refresh-token>" "https://api.box.com/2.0/folders/0" 

any idea how can use refresh token in api call?

the access_token used make box content api calls.

the refresh_token used obtain new access_token & refresh_token pair since access_tokens expire in around 60 minutes.

curl https://api.box.com/oauth2/token  -d 'grant_type=refresh_token' \ -d 'refresh_token=<my_refresh_token>' \ -d 'client_id=<my_client_id>' \ -d 'client_secret=<my_client_secret>' \ -x post 

Comments

Popular posts from this blog

account - Script error login visual studio DefaultLogin_PCore.js -

xcode - CocoaPod Storyboard error: -