DocSpring is a service that helps you fill out and sign PDF templates.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: v1
- Package version: 1.3.1
- Build package: com.docspring.codegen.DocSpringPythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import docspring Install via Setuptools.
python setup.py install --user(or sudo python setup.py install to install the package for all users)
Then import the package:
import docspringPlease follow the installation procedure and then run the following:
from __future__ import print_function
import time
import docspring
from docspring.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: api_token_basic
configuration = docspring.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = docspring.PDFApi(docspring.ApiClient(configuration))
template_id = 'tpl_000000000000000002' # str |
add_fields_data = docspring.AddFieldsData() # AddFieldsData |
try:
# Add new fields to a Template
api_response = api_instance.add_fields_to_template(template_id, add_fields_data)
pprint(api_response)
except ApiException as e:
print("Exception when calling PDFApi->add_fields_to_template: %s\n" % e)All URIs are relative to https://api.docspring.com/api/v1
| Class | Method | HTTP request | Description |
|---|---|---|---|
| PDFApi | add_fields_to_template | PUT /templates/{template_id}/add_fields | Add new fields to a Template |
| PDFApi | batch_generate_pdf_v1 | POST /templates/{template_id}/submissions/batch | Generates multiple PDFs |
| PDFApi | batch_generate_pdfs | POST /submissions/batches | Generates multiple PDFs |
| PDFApi | combine_pdfs | POST /combined_submissions?v=2 | Merge submission PDFs, template PDFs, or custom files |
| PDFApi | combine_submissions | POST /combined_submissions | Merge generated PDFs together |
| PDFApi | copy_template | POST /templates/{template_id}/copy | Copy a Template |
| PDFApi | create_custom_file_from_upload | POST /custom_files | Create a new custom file from a cached presign upload |
| PDFApi | create_data_request_token | POST /data_requests/{data_request_id}/tokens | Creates a new data request token for form authentication |
| PDFApi | create_folder | POST /folders/ | Create a folder |
| PDFApi | create_html_template | POST /templates?desc=html | Create a new HTML template |
| PDFApi | create_pdf_template | POST /templates | Create a new PDF template with a form POST file upload |
| PDFApi | create_pdf_template_from_upload | POST /templates?desc=cached_upload | Create a new PDF template from a cached presign upload |
| PDFApi | delete_folder | DELETE /folders/{folder_id} | Delete a folder |
| PDFApi | expire_combined_submission | DELETE /combined_submissions/{combined_submission_id} | Expire a combined submission |
| PDFApi | expire_submission | DELETE /submissions/{submission_id} | Expire a PDF submission |
| PDFApi | generate_pdf | POST /templates/{template_id}/submissions | Generates a new PDF |
| PDFApi | get_combined_submission | GET /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs) |
| PDFApi | get_data_request | GET /data_requests/{data_request_id} | Look up a submission data request |
| PDFApi | get_presign_url | GET /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket |
| PDFApi | get_submission | GET /submissions/{submission_id} | Check the status of a PDF |
| PDFApi | get_submission_batch | GET /submissions/batches/{submission_batch_id} | Check the status of a submission batch job |
| PDFApi | get_template | GET /templates/{template_id} | Get a single template |
| PDFApi | get_template_schema | GET /templates/{template_id}/schema | Fetch the JSON schema for a template |
| PDFApi | list_folders | GET /folders/ | Get a list of all folders |
| PDFApi | list_templates | GET /templates | Get a list of all templates |
| PDFApi | move_folder_to_folder | POST /folders/{folder_id}/move | Move a folder |
| PDFApi | move_template_to_folder | POST /templates/{template_id}/move | Move Template to folder |
| PDFApi | rename_folder | POST /folders/{folder_id}/rename | Rename a folder |
| PDFApi | test_authentication | GET /authentication | Test Authentication |
| PDFApi | update_data_request | PUT /data_requests/{data_request_id} | Update a submission data request |
| PDFApi | update_template | PUT /templates/{template_id} | Update a Template |
- AddFieldsData
- AddFieldsTemplateResponse
- AuthenticationError
- AuthenticationSuccessResponse
- CombinePdfsData
- CombinedSubmission
- CombinedSubmissionAction
- CombinedSubmissionData
- CopyTemplateData
- CreateCombinedSubmissionResponse
- CreateCustomFileData
- CreateCustomFileResponse
- CreateFolderData
- CreateHtmlTemplateData
- CreateSubmissionBatchResponse
- CreateSubmissionBatchSubmissionsResponse
- CreateSubmissionDataRequestData
- CreateSubmissionDataRequestTokenResponse
- CreateSubmissionDataRequestTokenResponseToken
- CreateSubmissionResponse
- CreateTemplateFromUploadData
- CustomFile
- Error
- Folder
- FoldersFolder
- HtmlTemplateData
- InvalidRequest
- MoveFolderData
- MoveTemplateData
- PendingTemplate
- RenameFolderData
- Submission
- SubmissionAction
- SubmissionBatch
- SubmissionBatchData
- SubmissionData
- SubmissionDataBatchRequest
- SubmissionDataRequest
- Template
- TemplateData
- TemplatestemplateIdaddFieldsFields
- UpdateDataRequestResponse
- UpdateSubmissionDataRequestData
- UpdateTemplateData
- UpdateTemplateResponse
- UploadTemplateData
- UploadTemplateDataDocument
- UploadTemplateDataDocumentMetadata
- Type: HTTP basic authentication