Automate token generation
Hello,
I created a cURL script to update a file info which needs a token. Currently, I am not using OAUTH neither JWT for the authentication process in real time (which could be complex to implement).
I am using the 'Box Token Generator' to manually generate the token which is valid for only 60 minutes. Hence every hour I have to refresh it and get a new one.
When I have the new token I need to update my cURL script.
I would like to use the same logic, automate the process and avoid the manual steps (manual re-generation of the token).
Can you please suggest the best approach.
Thanks, ZZ
-
You can use a Service Account to update a file's info. With a Service Account, you would use our JWT authentication model.
-
As a next step, I would suggest reading through the guides below and then explore building with one of our SDKs. We support JWT authentication through most of our SDKs.
Guides
サインインしてコメントを残してください。
コメント
6件のコメント