Sha256: 911eabd13dea49fbd6dfef81af266919aaf5e64af6557e202dbdf6a0539f3c9e

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 KB

Contents

# AdobeDocApi

This is still a work in progress. Use at your own risk.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'adobe_doc_api'
```

And then execute:

    $ bundle install

Or install it yourself as:

    $ gem install adobe_doc_api

## Configuration 
* Configuration can be overridden if you need by passing the values to AdobeDocApi::Client.new
```ruby
AdobeDocApi.configure do |config|
  config.client_id = nil
  config.client_secret = nil
  config.org_id = nil
  config.tech_account_id = nil
  config.private_key_path = nil
end
```

## Usage

```ruby
key_path = "../full_path_to/private.key"
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

# Without configuration you must pass these values
# client = AdobeDocApi::Client.new(private_key: key_path, client_id: ENV['adobe_client_id'], client_secret: ENV['adobe_client_secret']org_id: ENV['adobe_org_id'], tech_account_id: ENV['adobe_tech_account_id'], access_token: nil)

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

## Todo
- [x] Add multipart parsing to improve saving the file from the response
- [ ] Add documentation

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License

The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adobe_doc_api-0.1.4 README.md
adobe_doc_api-0.1.3 README.md