Categorygithub.com/docspring/docspring-go
repositorypackage
1.0.1
Repository: https://github.com/docspring/docspring-go.git
Documentation: pkg.go.dev

# README

Go API client for docspring

DocSpring is a service that helps you fill out and sign PDF templates.

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: v1
  • Package version: 1.0.1
  • Build package: com.docspring.codegen.DocSpringGoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context
go get github.com/antihax/optional

Put the package under your project folder and add the following in import:

import "./docspring"

Documentation for API Endpoints

All URIs are relative to https://api.docspring.com/api/v1

ClassMethodHTTP requestDescription
PDFApiAddFieldsToTemplatePut /templates/{template_id}/add_fieldsAdd new fields to a Template
PDFApiBatchGeneratePdfV1Post /templates/{template_id}/submissions/batchGenerates multiple PDFs
PDFApiBatchGeneratePdfsPost /submissions/batchesGenerates multiple PDFs
PDFApiCombinePdfsPost /combined_submissions?v=2Merge submission PDFs, template PDFs, or custom files
PDFApiCombineSubmissionsPost /combined_submissionsMerge generated PDFs together
PDFApiCopyTemplatePost /templates/{template_id}/copyCopy a Template
PDFApiCreateCustomFileFromUploadPost /custom_filesCreate a new custom file from a cached presign upload
PDFApiCreateDataRequestTokenPost /data_requests/{data_request_id}/tokensCreates a new data request token for form authentication
PDFApiCreateFolderPost /folders/Create a folder
PDFApiCreateHTMLTemplatePost /templates?desc=htmlCreate a new HTML template
PDFApiCreatePDFTemplatePost /templatesCreate a new PDF template with a form POST file upload
PDFApiCreatePDFTemplateFromUploadPost /templates?desc=cached_uploadCreate a new PDF template from a cached presign upload
PDFApiDeleteFolderDelete /folders/{folder_id}Delete a folder
PDFApiExpireCombinedSubmissionDelete /combined_submissions/{combined_submission_id}Expire a combined submission
PDFApiExpireSubmissionDelete /submissions/{submission_id}Expire a PDF submission
PDFApiGeneratePDFPost /templates/{template_id}/submissionsGenerates a new PDF
PDFApiGetCombinedSubmissionGet /combined_submissions/{combined_submission_id}Check the status of a combined submission (merged PDFs)
PDFApiGetDataRequestGet /data_requests/{data_request_id}Look up a submission data request
PDFApiGetFullTemplateGet /templates/{template_id}?full=trueFetch the full template attributes
PDFApiGetPresignUrlGet /uploads/presignGet a presigned URL so that you can upload a file to our AWS S3 bucket
PDFApiGetSubmissionGet /submissions/{submission_id}Check the status of a PDF
PDFApiGetSubmissionBatchGet /submissions/batches/{submission_batch_id}Check the status of a submission batch job
PDFApiGetTemplateGet /templates/{template_id}Check the status of an uploaded template
PDFApiGetTemplateSchemaGet /templates/{template_id}/schemaFetch the JSON schema for a template
PDFApiListFoldersGet /folders/Get a list of all folders
PDFApiListSubmissionsGet /submissionsList all submissions
PDFApiListSubmissions_0Get /templates/{template_id}/submissionsList all submissions for a given template
PDFApiListTemplatesGet /templatesGet a list of all templates
PDFApiMoveFolderToFolderPost /folders/{folder_id}/moveMove a folder
PDFApiMoveTemplateToFolderPost /templates/{template_id}/moveMove Template to folder
PDFApiRenameFolderPost /folders/{folder_id}/renameRename a folder
PDFApiTestAuthenticationGet /authenticationTest Authentication
PDFApiUpdateDataRequestPut /data_requests/{data_request_id}Update a submission data request
PDFApiUpdateTemplatePut /templates/{template_id}Update a Template

Documentation For Models

Documentation For Authorization

api_token_basic

  • Type: HTTP basic authentication

Example

auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{
	UserName: "username",
	Password: "password",
})
r, err := client.Service.Operation(auth, args)

Author