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

How to use Python to automatically get access token without open the web page

New post

Comments

3 comments

  • Kourtney

     Have you checked out our Python SDK? It sounds like this would meet your needs. 

     

    Best, 

    Kourtney 

    0
    Comment actions Permalink
  • Moonstone7

    Thanks for your reply, I have checked this page and test several ways. I can use Python sdk with JWT authentication (public/private key) to get the client and already made the enterprise authorization, but it will always return 404 error when I want to get the specific file or folder.

     

     

    WechatIMG1.pngWechatIMG3.png

     

    0
    Comment actions Permalink
  • Kourtney

     If you're using JWT auth, it means that your default token is going to be for the application's service account. This means you'll only be able to interact with the content you've added your AutomationUser as a collaborator on or what they own. 

     

    You either need to change your JWT assertion and get a token for a user who has access to the content currently, or add the AutomationUser as a collaborator on the content. 

     

    Best, 

    Kourtney 

    0
    Comment actions Permalink

Please sign in to leave a comment.