0.0
No release in over a year
BlazingDocs Ruby client. High-performance document generation API. Generate documents and reports from СSV, JSON, XML with 99,9% uptime and 24/7 monitoring
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

BlazingDocs Ruby client

High-performance document generation API. Generate documents and reports from СSV, JSON, XML with 99,9% uptime and 24/7 monitoring.

Installation

Add this line to your application's Gemfile:

gem 'blazingdocs'

Integration basics

Setup

You can get your API Key at https://app.blazingdocs.com

client = BlazingDocs.create_client('api-key')

Getting account info

account = client.get_account

Getting merge templates list

templates = client.get_templates

# with parent folder path
templates = client.get_templates('parentfolder')

Getting usage info

usage = client.get_usage

Executing merge

data = File.open('PO-Template.json').read
template = File.open('PO-Template.docx')

merge_parameters = BlazingDocs::MergeParameters.new
merge_parameters.sequence = false # data is object
merge_parameters.data_source_type = 'json' # data in json format
merge_parameters.strict = true # keep json types

merge_result = client.merge(data, 'output.pdf', merge_parameters, template)

Documentation

See more details here https://docs.blazingdocs.com