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

新規投稿

コメント

3件のコメント

  • Kourtney

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

     

    Best, 

    Kourtney 

    0
    コメントアクション パーマリンク
  • 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
    コメントアクション パーマリンク
  • 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
    コメントアクション パーマリンク

サインインしてコメントを残してください。