From d6d5691a427754d0fe5c0054f31ad659e3262b01 Mon Sep 17 00:00:00 2001 From: Oleg Menteshashvili Date: Fri, 20 Aug 2021 13:37:16 +0300 Subject: [PATCH] Update README.md --- README.md | 58 +------------------------------------------------------ 1 file changed, 1 insertion(+), 57 deletions(-) diff --git a/README.md b/README.md index 273c16b..d878632 100644 --- a/README.md +++ b/README.md @@ -37,41 +37,7 @@ templates = client.get_templates() usage = client.get_usage() ``` -### Executing merge with template id - -```python -client = BlazingClient('API-KEY') -parameters = MergeParameters() - -with open('templates/PO-Template.json', 'r', encoding='utf-8') as f: - data = f.read() - -operation = client.merge_with_id( - data=data, - filename='output.pdf', - parameters=parameters, - template=uuid.UUID('TEMPLATE-ID') -) -``` - -### Executing merge with relative path - -```python -client = BlazingClient('API-KEY') -parameters = MergeParameters() - -with open('templates/PO-Template.json', 'r', encoding='utf-8') as f: - data = f.read() - -operation = client.merge_with_relative_path( - data=data, - filename='output.pdf', - parameters=parameters, - template='RELATIVE-PATH' # e.g. 'folder/nested_folder/Template.docx' -) -``` - -### Executing merge with form file +### Executing merge ```python client = BlazingClient('API-KEY') @@ -92,28 +58,6 @@ operation = client.merge_with_form_file( ) ``` -### Executing merge with array - -```python -client = BlazingClient('API-KEY') -parameters = MergeParameters() -parameters.sequence = True # data is array - -with open('templates/PO-Template-Array.json', 'r', encoding='utf-8') as f: - data = f.read() - -with open('templates/PO-Template-Array.docx', 'rb') as f: - file = FormFile('PO-Template-Array.docx') - file.content = f.read() - -operation = client.merge_with_form_file( - data=data, - filename='output.pdf', - parameters=parameters, - template=file -) -``` - ## Documentation See more details here https://docs.blazingdocs.com \ No newline at end of file