Jul-10-2018, 04:40 AM
Hi ALl,
Has anyone connected with the dropbox using Python3.6?
I am trying to first connect with the drobox and then I need to read some csv files from there.
For that I have written a helper class which have functions-connect,read etc.
I have read the api v2 doc api v2 drobox doc
But couldn't find the way to achieve my goal.Below is my code snippet for this but it is not complete and need your help-
Has anyone connected with the dropbox using Python3.6?
I am trying to first connect with the drobox and then I need to read some csv files from there.
For that I have written a helper class which have functions-connect,read etc.
I have read the api v2 doc api v2 drobox doc
But couldn't find the way to achieve my goal.Below is my code snippet for this but it is not complete and need your help-
class DropBoxHelper(object): def connect_to_dropbox(self): config = configparser.ConfigParser() config.read(os.path.abspath(os.pardir) + '/config.ini') app_key = config['DROPBOX']['KEY'] app_secret = config['DROPBOX']['SECRET'] access_type = "dropbox" session = dropbox.Dropbox(app_key) if __name__ == '__main__': DropBoxHelper.connect_to_dropbox(object)Can anyone please look into this and share me how to complete this?