You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
jianliao
7 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')...
- 7 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
7 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,910 PostsLatest Activity: 4 days 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!