Python SDK, as_user usage ...

新規投稿

コメント

2件のコメント

  • Bibek

    Hi there,

    I suppose, you already have As-User enabled in your App. if not you have to have box do it for you via ticket.

     

    Now,

      this line here:

    root_folder = client.folder(folder_id=target_folder)

     i think it should it be  root_folder = client.as_user(user).folder(folder_id= target_folder)  as well. also for the upload.

    I think for all statements you should include as-user if it is doing on behalf of other users. 

    i hope this made sense. 

     

    thanks, 

    Bibek

    0
    コメントアクション パーマリンク
  • TInkster

    Hi Bibek,

     

    Thank you for the response.

    Yes, box have kindly enabled as_user for my app.

    I may give your suggestion a shot.

     

    Cheers,

    Andrej

    0
    コメントアクション パーマリンク

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