Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

form_api

Package Overview
Dependencies
Maintainers
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

form_api

  • 1.12.0
  • Rubygems
  • Socket score

Version published
Maintainers
2
Created
Source

form_api

FormAPI - the Ruby gem for the API v1

FormAPI 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.12.0
  • Build package: io.formapi.codegen.FormApiRubyClientCodegen

Installation

Build a gem

To build the Ruby code into a gem:

gem build form_api.gemspec

Then either install the gem locally:

gem install ./form_api-1.12.0.gem

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

# Setup authorization
FormAPI.configure do |config|
  # Configure HTTP basic authorization: api_token_basic
  config.username = 'YOUR USERNAME'
  config.password = 'YOUR PASSWORD'
end

api_instance = FormAPI::PDFApi.new
template_id = 'tpl_000000000000000001' # String | 
request_body = nil # Array<Object> | 

begin
  #Generates multiple PDFs
  result = api_instance.batch_generate_pdf_v1(template_id, request_body)
  p result
rescue FormAPI::ApiError => e
  puts "Exception when calling PDFApi->batch_generate_pdf_v1: #{e}"
end

Documentation for API Endpoints

All URIs are relative to https://api.formapi.io/api/v1

ClassMethodHTTP requestDescription
FormAPI::PDFApibatch_generate_pdf_v1POST /templates/{template_id}/submissions/batchGenerates multiple PDFs
FormAPI::PDFApibatch_generate_pdfsPOST /submissions/batchesGenerates multiple PDFs
FormAPI::PDFApicombine_pdfsPOST /combined_submissions?v=2Merge submission PDFs, template PDFs, or custom files
FormAPI::PDFApicombine_submissionsPOST /combined_submissionsMerge generated PDFs together
FormAPI::PDFApicreate_custom_file_from_uploadPOST /custom_filesCreate a new custom file from a cached presign upload
FormAPI::PDFApicreate_data_request_tokenPOST /data_requests/{data_request_id}/tokensCreates a new data request token for form authentication
FormAPI::PDFApicreate_folderPOST /folders/Create a folder
FormAPI::PDFApicreate_templatePOST /templatesUpload a new PDF template with a file upload
FormAPI::PDFApicreate_template_from_uploadPOST /templates?v=2Create a new PDF template from a cached presign upload
FormAPI::PDFApidelete_folderDELETE /folders/{folder_id}Delete a folder
FormAPI::PDFApiexpire_combined_submissionDELETE /combined_submissions/{combined_submission_id}Expire a combined submission
FormAPI::PDFApiexpire_submissionDELETE /submissions/{submission_id}Expire a PDF submission
FormAPI::PDFApigenerate_pdfPOST /templates/{template_id}/submissionsGenerates a new PDF
FormAPI::PDFApiget_combined_submissionGET /combined_submissions/{combined_submission_id}Check the status of a combined submission (merged PDFs)
FormAPI::PDFApiget_data_requestGET /data_requests/{data_request_id}Look up a submission data request
FormAPI::PDFApiget_presign_urlGET /uploads/presignGet a presigned URL so that you can upload a file to our AWS S3 bucket
FormAPI::PDFApiget_submissionGET /submissions/{submission_id}Check the status of a PDF
FormAPI::PDFApiget_submission_batchGET /submissions/batches/{submission_batch_id}Check the status of a submission batch job
FormAPI::PDFApiget_templateGET /templates/{template_id}Get a single template
FormAPI::PDFApiget_template_schemaGET /templates/{template_id}/schemaFetch the JSON schema for a template
FormAPI::PDFApilist_foldersGET /folders/Get a list of all folders
FormAPI::PDFApilist_templatesGET /templatesGet a list of all templates
FormAPI::PDFApimove_folder_to_folderPOST /folders/{folder_id}/moveMove a folder
FormAPI::PDFApimove_template_to_folderPOST /templates/{template_id}/moveMove Template to folder
FormAPI::PDFApirename_folderPOST /folders/{folder_id}/renameRename a folder
FormAPI::PDFApitest_authenticationGET /authenticationTest Authentication
FormAPI::PDFApiupdate_data_requestPUT /data_requests/{data_request_id}Update a submission data request

Documentation for Models

Documentation for Authorization

api_token_basic

  • Type: HTTP basic authentication

FAQs

Package last updated on 09 Oct 2019

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