Skip to content

Commit

Permalink
Updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeyes committed Nov 29, 2011
1 parent f671695 commit c593367
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions README.md
Expand Up @@ -2,17 +2,18 @@

A wrapper for the Doc Raptor API.

from docraptor import pdf
pdf(
"API_KEY",
"<html><body>Hi</body></html>",
{ "doc[name]": "hi.pdf", "doc[test]": "true" }
)

from docraptor import xls
xls(
"API_KEY",
"<table>...</table>",
{ "doc[name]": "hi.pdf", "doc[test]": "true" }
)


from docraptor import DocRaptor
docraptor = DocRaptor()
with open("test.pdf", "wb") as f:
f.write(docraptor.create({
'document_content': '<p>Test</p>',
'test': True
}))

resp = docraptor.create({
'document_content': '<p>Test</p>',
'test': True,
'async': True
})
resp = docraptor.status(docraptor.status_id)

0 comments on commit c593367

Please sign in to comment.