

Please make sure this application is allowed before continuing."Īccess_token = session.obtain_access_token(request_token)

Request_token = session.obtain_request_token() Print "ERROR: config.ini not found! Exiting!"

Self.base_path = os.path.dirname(os.path.abspath(_file_))Ĭonfig_path = os.path.join(self.base_path, "config.ini") Here’s what I came up with:ĭropbox object that can access your dropbox folder,Īs well as download and upload files to dropboxĭef _init_(self, filename=None, path='/'): Now we’re ready to start writing some code. Once you have that, you’ll need to name your application and choose your access level. You will also need to sign up for a key and secret. You’ll need to download their dropbox module to follow along or use “pip install dropbox” to install it. I ended up using their tutorial to design a simple class for accessing my Dropbox. Yesterday, I stumbled on to Dropbox’s Python API.
