Viewing a folder or upload a file to a folder as the co-owner

回答済み
新規投稿

コメント

1件のコメント

  • Box Product Support

    I figured out my issue. It looks like I needed to authenticate with a user token instead of an admin token. The information was at the following link: https://developer.box.com/en/guides/authentication/jwt/user-access-tokens/#user-access-tokens-with-sdks

     

    So I changed the following lines:

     

    var jwt = new BoxJWTAuth(config);

    var admin_token = jwt.AdminToken();
    var client = jwt.AdminClient(admin_token, asUser: account_b_user_id);

     

    To read like this:

     

    var jwt = new BoxJWTAuth(config);
    var token = jwt.UserToken(account_b_user_id);
    var client = jwt.UserClient(token, account_b_user_id);

     

    After doing that, it worked!

     

     

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

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