Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.4.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

docspring

DocSpring - the Ruby gem for the API v1

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

This SDK is automatically generated by the OpenAPI Generator project:

  • API version: v1
  • Package version: 1.4.1
  • Build package: com.docspring.codegen.DocSpringRubyClientCodegen

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-1.4.1.gem

(for development, run gem install --dev ./docspring-1.4.1.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', '~> 1.4.1'

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_000000000000000002' # String | 
add_fields_data = DocSpring::AddFieldsData.new # AddFieldsData | 

begin
  #Add new fields to a Template
  result = api_instance.add_fields_to_template(template_id, add_fields_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://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_pdf_v1POST /templates/{template_id}/submissions/batchGenerates multiple PDFs
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_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?desc=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?desc=cached_uploadCreate a new PDF template from a cached presign upload
DocSpring::PDFApidelete_folderDELETE /folders/{folder_id}Delete a folder
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::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 template attributes
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_foldersGET /folders/Get a list of all folders
DocSpring::PDFApilist_submissionsGET /submissionsList all submissions
DocSpring::PDFApilist_submissions_0GET /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::PDFApirename_folderPOST /folders/{folder_id}/renameRename a folder
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

api_token_basic

  • Type: HTTP basic authentication

FAQs

Package last updated on 27 Nov 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc