🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

adobe_doc_api

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adobe_doc_api

0.3.0
100

Supply Chain Security

100

Vulnerability

99

Quality

100

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Network access

Supply chain risk

This module accesses the network.

Found 1 instance in 1 package

Version published
Maintainers
1
Created

AdobeDocApi

This is still a work in progress and breaking changes may be made, but I will do my best to update the README when features have been changed.

Installation

Add this line to your application's Gemfile:

gem 'adobe_doc_api'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install adobe_doc_api

Configuration

AdobeDocApi.configure do |config|
    config.client_id = nil
    config.client_secret = nil
    config.scopes = nil
end
AdobeDocApi.configure do |config|
    config.client_id = Rails.application.credentials.dig(:adobe_doc, :client_id)
    config.client_secret = Rails.application.credentials.dig(:adobe_doc, :client_secret)
    config.scopes = Rails.application.credentials.dig(:adobe_doc, :scopes)
end

Usage

template_path = "../full_path_to/disclosure.docx"
output_path = "../full_path_to_output/output.docx"
json_data = { 'DocTag': 'Value', 'DocTag2': 'Value2'}

client = AdobeDocApi::Client.new
client.submit(json: json_data, template: template_path, output: output_path)
# returns true or false if file was saved to output_path

Usage without configuration

client = AdobeDocApi::Client.new(client_id: adobe_client_id,
                                 client_secret: adobe_client_secret,
                                 scopes: adobe_scopes)

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

License

The gem is available as open source under the terms of the MIT License.

FAQs

Package last updated on 11 Jun 2025

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