Categorygithub.com/docspring/docspring-go
modulepackage
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

# Functions

CacheExpires helper function to determine remaining time before repeating a request.
NewAPIClient creates a new API client.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ContextAccessToken takes a string oauth2 access token as authentication for the request.
ContextAPIKey takes an APIKey as authentication for the request.
ContextBasicAuth takes BasicAuth as authentication for the request.
ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.

# Structs

No description provided by the author
No description provided by the author
APIClient manages communication with the API v1 API vv1 In most cases there should be only one, shared, APIClient.
APIKey provides API key based authentication to a request passed via context using ContextAPIKey.
No description provided by the author
No description provided by the author
No description provided by the author
BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GenericOpenAPIError Provides access to the body, error and model on returned errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author