🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

docspring

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docspring

3.1.0
Rubygems
Version published
Maintainers
1
Created
Source

docspring

DocSpring - the Ruby gem for the DocSpring API

DocSpring provides an API that helps you fill out and sign PDF templates.

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 3.1.0
  • Generator version: 7.11.0
  • Build package: org.openapitools.codegen.languages.RubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build docspring.gemspec

Then either install the gem locally:

gem install ./docspring-3.1.0.gem

(for development, run gem install --dev ./docspring-3.1.0.gem to install the development dependencies)

or publish the gem to a gem hosting service, e.g. RubyGems.

Finally add this to the Gemfile:

gem 'docspring', '~> 3.1.0'

Install from Git

If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:

gem 'docspring', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'

Include the Ruby code directly

Include the Ruby code directly using -I as follows:

ruby -Ilib script.rb

Getting Started

Please follow the installation procedure and then run the following code:

# Load the gem
require 'docspring'

# Setup authorization
DocSpring.configure do |config|
  # Configure HTTP basic authorization: api_token_basic
  config.username = 'YOUR_USERNAME'
  config.password = 'YOUR_PASSWORD'
end

api_instance = DocSpring::PDFApi.new
template_id = 'tpl_1234567890abcdef02' # String | 
data = DocSpring::AddFieldsData.new({fields: [3.56]}) # AddFieldsData | 

begin
  #Add new fields to a Template
  result = api_instance.add_fields_to_template(template_id, data)
  p result
rescue DocSpring::ApiError => e
  puts "Exception when calling PDFApi->add_fields_to_template: #{e}"
end

Documentation for API Endpoints

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

ClassMethodHTTP requestDescription
DocSpring::PDFApiadd_fields_to_templatePUT /templates/{template_id}/add_fieldsAdd new fields to a Template
DocSpring::PDFApibatch_generate_pdfsPOST /submissions/batchesGenerates multiple PDFs
DocSpring::PDFApicombine_pdfsPOST /combined_submissions?v=2Merge submission PDFs, template PDFs, or custom files
DocSpring::PDFApicombine_submissionsPOST /combined_submissionsMerge generated PDFs together
DocSpring::PDFApicopy_templatePOST /templates/{template_id}/copyCopy a Template
DocSpring::PDFApicreate_custom_file_from_uploadPOST /custom_filesCreate a new custom file from a cached presign upload
DocSpring::PDFApicreate_data_request_eventPOST /data_requests/{data_request_id}/eventsCreates a new event for emailing a signee a request for signature
DocSpring::PDFApicreate_data_request_tokenPOST /data_requests/{data_request_id}/tokensCreates a new data request token for form authentication
DocSpring::PDFApicreate_folderPOST /folders/Create a folder
DocSpring::PDFApicreate_html_templatePOST /templates?endpoint_description=htmlCreate a new HTML template
DocSpring::PDFApicreate_pdf_templatePOST /templatesCreate a new PDF template with a form POST file upload
DocSpring::PDFApicreate_pdf_template_from_uploadPOST /templates?endpoint_description=cached_uploadCreate a new PDF template from a cached presign upload
DocSpring::PDFApidelete_folderDELETE /folders/{folder_id}Delete a folder
DocSpring::PDFApidelete_templateDELETE /templates/{template_id}Delete a template
DocSpring::PDFApiexpire_combined_submissionDELETE /combined_submissions/{combined_submission_id}Expire a combined submission
DocSpring::PDFApiexpire_submissionDELETE /submissions/{submission_id}Expire a PDF submission
DocSpring::PDFApigenerate_pdfPOST /templates/{template_id}/submissionsGenerates a new PDF
DocSpring::PDFApigenerate_pdf_for_html_templatePOST /templates/{template_id}/submissions?endpoint_description=html_templatesGenerates a new PDF for an HTML template
DocSpring::PDFApigenerate_previewPOST /submissions/{submission_id}/generate_previewGenerated a preview PDF for partially completed data requests
DocSpring::PDFApiget_combined_submissionGET /combined_submissions/{combined_submission_id}Check the status of a combined submission (merged PDFs)
DocSpring::PDFApiget_data_requestGET /data_requests/{data_request_id}Look up a submission data request
DocSpring::PDFApiget_full_templateGET /templates/{template_id}?full=trueFetch the full attributes for a PDF template
DocSpring::PDFApiget_presign_urlGET /uploads/presignGet a presigned URL so that you can upload a file to our AWS S3 bucket
DocSpring::PDFApiget_submissionGET /submissions/{submission_id}Check the status of a PDF
DocSpring::PDFApiget_submission_batchGET /submissions/batches/{submission_batch_id}Check the status of a submission batch job
DocSpring::PDFApiget_templateGET /templates/{template_id}Check the status of an uploaded template
DocSpring::PDFApiget_template_schemaGET /templates/{template_id}/schemaFetch the JSON schema for a template
DocSpring::PDFApilist_combined_submissionsGET /combined_submissionsGet a list of all combined submissions
DocSpring::PDFApilist_foldersGET /folders/Get a list of all folders
DocSpring::PDFApilist_submissionsGET /submissionsList all submissions
DocSpring::PDFApilist_template_submissionsGET /templates/{template_id}/submissionsList all submissions for a given template
DocSpring::PDFApilist_templatesGET /templatesGet a list of all templates
DocSpring::PDFApimove_folder_to_folderPOST /folders/{folder_id}/moveMove a folder
DocSpring::PDFApimove_template_to_folderPOST /templates/{template_id}/moveMove Template to folder
DocSpring::PDFApipublish_template_versionPOST /templates/{template_id}/publish_versionPublish a template version
DocSpring::PDFApirename_folderPOST /folders/{folder_id}/renameRename a folder
DocSpring::PDFApirestore_template_versionPOST /templates/{template_id}/restore_versionRestore a template version
DocSpring::PDFApitest_authenticationGET /authenticationTest Authentication
DocSpring::PDFApiupdate_data_requestPUT /data_requests/{data_request_id}Update a submission data request
DocSpring::PDFApiupdate_templatePUT /templates/{template_id}Update a Template

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

api_token_basic

  • Type: HTTP basic authentication

FAQs

Package last updated on 22 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts