I'm having trouble getting a shareable link from a file through the Dropbox API. This is the entirety of my code:
import os
import dropbox
dbx = dropbox.Dropbox('access token')
myPath = os.path.join("E:\\Dropbox\\DUNESBURY NEW ITEM PICS\\2019\\01 January\\Originals\\Flowers\\DSC_0247.NEF")
dbx.sharing_create_shared_link(path = myPath, short_url=False, pending_upload=None)
This throws the error:
dropbox.exceptions.ApiError: ApiError('dd1d6711a935e6b6fd04c192fd58bfca', CreateSharedLinkError('path', LookupError('malformed_path', None)))I'm trying to get this script to print links like this: https://www.dropbox.com/s/fcdljiu8hjv3g7u/DSC_0247.NEF?dl=0, and write them to a .txt file, so I can automate the process for us getting links out of Dropbox.
Am I on the right track? How can I resolve this error?