This repository contains GroupDocs.Assembly Cloud SDK for Ruby source code. This SDK allows you to work with GroupDocs.Assembly Cloud REST APIs in your Ruby applications quickly and easily, with zero initial cost.
See API Reference for full API specification.
- API to Define Templates, Fetch Data Source, Insert Data in Template & Generate on the fly Reports.
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get RubyGem (recommended).
To use GroupDocs.Assembly for Cloud Ruby SDK you need to register an account with GroupDocs Cloud and lookup/create App Key and SID at Cloud Dashboard. There is free quota available. For more details, see GroupDocs Cloud Pricing.
To install this package do the following: update your Gemfile
gem 'groupdocs_assembly_cloud', '~> 21.1'or install directly
gem install groupdocs_assembly_cloud@config = Configuration.new
@config.api_key['api_key'] = '' # Put your's api_key and app_sid
@config.api_key['app_sid'] = ''
@api_client = ApiClient.new @config
@assembly_api = AssemblyApi.new @api_client
template_file_info = TemplateFileInfo.new(:FilePath => remote_name)
assemble_data = AssembleOptions.new(:TemplateFileInfo => template_file_info, :SaveFormat => "docx", :ReportData => File.open(DataFile, 'rb') { |f| f.read })
request = AssembleDocumentRequest.new assemble_data
result = @assembly_api.assemble_document request
assert result.length > 0, 'Error occurred while getting image data'Tests contain various examples of using the SDK. Please put your credentials into Configuration.
- Ruby 2.3 or later
- referenced packages (see here for more details)
Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial