2017 © Pedro Peláez
 

library formapi

image

formapi/formapi

  • Monday, March 26, 2018
  • by formapi
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 50 % Grown

The README.md

FormAPI

FormAPI is a service that helps you fill out and sign PDF templates., (*1)

This PHP package is automatically generated by the OpenAPI Generator project:, (*2)

  • API version: v1
  • Package version: 1.13.0
  • Build package: io.formapi.codegen.FormApiPhpClientCodegen

Requirements

PHP 5.5 and later, (*3)

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:, (*4)

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/formapi/formapi.git"
    }
  ],
  "require": {
    "formapi/formapi": "*@dev"
  }
}

Then run composer install, (*5)

Manual Installation

Download the files and include autoload.php:, (*6)

    require_once('/path/to/FormAPI/vendor/autoload.php');

Tests

To run the unit tests:, (*7)

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:, (*8)

setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new FormAPI\Api\PDFApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$template_id = tpl_000000000000000001; // string | 
$request_body = array(new \FormAPI\Model\array()); // object[] | 

try {
    $result = $apiInstance->batchGeneratePdfV1($template_id, $request_body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling PDFApi->batchGeneratePdfV1: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.formapi.io/api/v1, (*9)

Class Method HTTP request Description
PDFApi batchGeneratePdfV1 POST /templates/{template_id}/submissions/batch Generates multiple PDFs
PDFApi batchGeneratePdfs POST /submissions/batches Generates multiple PDFs
PDFApi combinePdfs POST /combined_submissions?v=2 Merge submission PDFs, template PDFs, or custom files
PDFApi combineSubmissions POST /combined_submissions Merge generated PDFs together
PDFApi createCustomFileFromUpload POST /custom_files Create a new custom file from a cached presign upload
PDFApi createDataRequestToken POST /data_requests/{data_request_id}/tokens Creates a new data request token for form authentication
PDFApi createFolder POST /folders/ Create a folder
PDFApi createTemplate POST /templates Upload a new PDF template with a file upload
PDFApi createTemplateFromUpload POST /templates?v=2 Create a new PDF template from a cached presign upload
PDFApi deleteFolder DELETE /folders/{folder_id} Delete a folder
PDFApi expireCombinedSubmission DELETE /combined_submissions/{combined_submission_id} Expire a combined submission
PDFApi expireSubmission DELETE /submissions/{submission_id} Expire a PDF submission
PDFApi generatePDF POST /templates/{template_id}/submissions Generates a new PDF
PDFApi getCombinedSubmission GET /combined_submissions/{combined_submission_id} Check the status of a combined submission (merged PDFs)
PDFApi getDataRequest GET /data_requests/{data_request_id} Look up a submission data request
PDFApi getPresignUrl GET /uploads/presign Get a presigned URL so that you can upload a file to our AWS S3 bucket
PDFApi getSubmission GET /submissions/{submission_id} Check the status of a PDF
PDFApi getSubmissionBatch GET /submissions/batches/{submission_batch_id} Check the status of a submission batch job
PDFApi getTemplate GET /templates/{template_id} Get a single template
PDFApi getTemplateSchema GET /templates/{template_id}/schema Fetch the JSON schema for a template
PDFApi listFolders GET /folders/ Get a list of all folders
PDFApi listTemplates GET /templates Get a list of all templates
PDFApi moveFolderToFolder POST /folders/{folder_id}/move Move a folder
PDFApi moveTemplateToFolder POST /templates/{template_id}/move Move Template to folder
PDFApi renameFolder POST /folders/{folder_id}/rename Rename a folder
PDFApi testAuthentication GET /authentication Test Authentication
PDFApi updateDataRequest PUT /data_requests/{data_request_id} Update a submission data request

Documentation For Models

Documentation For Authorization

api_token_basic

  • Type: HTTP basic authentication

Author

The Versions

26/03 2018

1.0.0

1.0.0.0 http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk

26/03 2018

dev-master

9999999-dev http://swagger.io

  Sources   Download

proprietary

The Requires

 

The Development Requires

api php swagger sdk