We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb22ef0 commit c2d3d22Copy full SHA for c2d3d22
examples/download_document.rb
@@ -2,8 +2,10 @@
2
3
client = Eversign::Client.new
4
5
-for document in client.get_all_documents()
6
- client.download_raw_document_to_path(document.document_hash, 'raw.pdf')
7
- client.download_final_document_to_path(document.document_hash, 'final.pdf')
8
- break
9
-end
+documents = client.get_all_documents()
+
+# paradox discovered: documents.first is actually last added document
+document = documents.first
10
+client.download_raw_document_to_path(document.document_hash, 'raw.pdf')
11
+client.download_final_document_to_path(document.document_hash, 'final.pdf')
0 commit comments