Signatureio Ruby Bindings
This gem is a wrapper for Signature.io's API.
Installation
Add this line to your application's Gemfile:
gem 'signatureio'
And then execute:
$ bundle
Or install it yourself as:
$ gem install signatureio
Then in your application initialize the gem:
$ Signatureio.secret_api_key = "your_secret_api_key"
$ Signatureio.public_api_key = "your_public_api_key"
Usage
Create Document
$ Signatureio::Document.create(:url => "https://www.signature.io/pdfs/sign-below.pdf")
Replace the url with a url of the PDF or Microsoft Word file you choose.
Retrieve Document
$ Signatureio::Document.retrieve("id_of_document")
List Documents
$ Signatureio::Document.all
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - export SIGNATURE_SECRET_API_KEY="your_secret_api_key"
- export SIGNATURE_PUBLIC_API_KEY="your_public_api_key"
- Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request