

def _getClient(self, serviceRec):
    if serviceRec.Authorization['Full']:
        sess = session.DropboxSession(DROPBOX_FULL_APP_KEY, DROPBOX_FULL_APP_SECRET, 'dropbox')
    else:
        sess = session.DropboxSession(DROPBOX_APP_KEY, DROPBOX_APP_SECRET, 'app_folder')
    sess.set_token(serviceRec.Authorization['Key'], serviceRec.Authorization['Secret'])
    return client.DropboxClient(sess)

dataset/ETHPy150Open cpfair/tapiriik/tapiriik/services/Dropbox/dropbox.py DropboxService._getClient/original