My team and I share a Box instance at the office, which we do not administer. We all use our browser to upload and download files to and from this instance.
We want to do the same using the SDK (in our case Python) so that we can automate actions with Box and treat it like a general shared filesystem for our scripts.
I set up my own free Box account. I wrote the code to connect via JWT, and was able to upload and download, but then I realized that's for a special app, not the general Box account I set up.
I see the instructions for OAuth2, which includes a step where the user grants access to Box via browser. For automation that won't work, unless that grant is just a one-time thing that then stays in place indefinitely.
I can see in the page that requests the grant this code:
" name="__login" value="1"><input type="hidden"
<input type="hidden" id="_pw_sql" name="_pw_sql" value=""/>
The instructions at https://developer.box.com/guides/authentication/oauth2/with-sdk/ say something about a short-lived code that can be used to generate an access token. Is the value for request_token (e8b74bfb3f74e7192705acb5k315170d2cf6f019e3bd060bc16d3634b1a32c9b) this short-lived code?
If yes, the documentation then says:
client = Client(oauth)
But it does not define oauth. What is that?
Please sign in to leave a comment.