trying to get promises implemented in dropbox api calls