Welcome to the new Box Support website. Check out all the details here on what’s changed.

upload files with python

New post

Comments

2 comments

  • Kourtney

    Hello , 

     

    Thanks so much for using our platform and development forum! 

     

    For security reasons, it is not possible to hard code parameters so these do not expire. Your code should be able to handle the token refresh once the hour is up and I believe the python SDK should already have logic for this. 

     

    Best, 

    Kourtney

    0
    Comment actions Permalink
  • mwiller

     For this type of use case where you want your script to run without user interaction, we would recommend using Server-to-Server authentication with JWT, rather than traditional OAuth2.  The Box Python SDK has a boxsdk[jwt] variant that supports JWT auth, and there are some general instructions for how to get set up using the SDK with JWT authentication in the Developer Quickstart Guide.

    0
    Comment actions Permalink

Please sign in to leave a comment.