We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
jianliao
6 months agoExplorer | Level 4
Export legacy paper via python sdk does not work
Hi, I am using the latest dropbox-sdk-python. Here is my python code:
import os
import dropbox
from dropbox.paper import ExportFormat
dbx = dropbox.Dropbox(os.getenv('DROPBOX_ACCESS_TOKEN')...
- 6 months ago
jianliao I just tried this out with an account on legacy Paper and I was able to get the body of the document using paper_docs_download_to_file and ExportFormat.markdown. Can you double check that the particular document for the doc ID you're specifying has a non-empty body, e.g., on the Dropbox web site?
As for using paper_docs_download, that returns a (dropbox.paper.PaperDocExportResult, requests.models.Response), you can access the data like this, for example:
metadata, response = dbx.paper_docs_download(DOC_ID, ExportFormat.markdown) print(response.text)
Greg-DB
6 months agoDropbox Staff
jianliao I just tried this out with an account on legacy Paper and I was able to get the body of the document using paper_docs_download_to_file and ExportFormat.markdown. Can you double check that the particular document for the doc ID you're specifying has a non-empty body, e.g., on the Dropbox web site?
As for using paper_docs_download, that returns a (dropbox.paper.PaperDocExportResult, requests.models.Response), you can access the data like this, for example:
metadata, response = dbx.paper_docs_download(DOC_ID, ExportFormat.markdown)
print(response.text)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!