af11 Helpful | Level 6

Comments

  • Thank you, it seems that the access and refresh tokens were actually not being passed in properly. On a different note, when I use the OAuth flow to authorize connecting a Dropbox account to this app, I think something is insecure about it. Why is Dropbox asking to access my contacts? That has nothing to do with the app I…
  • The thing is that I am testing this app on a personal account for now so the team members is not the issue. There are changes being made when the Webhook returns an empty entry. Could it be that the issue is that I only set the recursive property later on, after I had been running the code a few times? Can you please…
  • Thank you. I did that now: id = os.environ.get('USER_ID') dbx = DropboxTeam(token) dbx.as_admin(id) But now, I can't do all the methods that I did in the Dropbox class above, for example files_list_folder(). How can I be able to do these methods?
  • I get an error dropbox.exceptions.BadInputError dropbox.exceptions.BadInputError: BadInputError('4d74b1405c1c445d8449545260b7b9a1', 'Error in call to API function "users/get_current_account": This API function operates on a single Dropbox account, but the OAuth 2 access token you provided is for an entire Dropbox Business…
  • Thank you so much!
  • from hashlib import sha256import hmacimport jsonimport osimport threadingimport urllib.parsefrom dotenv import load_dotenvfrom dropbox import Dropbox, DropboxOAuth2Flowfrom dropbox.files import DeletedMetadata, FolderMetadata, WriteModefrom flask import abort, Flask, redirect, render_template, Response, request, session,…