Announcing Mindee’s Ruby Client Library2 min read
In our continued efforts on adding additional language support for Mindee API, we’re happy to announce the release of our Ruby client library. This is now our third client library, after the launch of the Python and Node.js client libraries, both of which were met with great success. They allow you to interact with the Mindee API very easily.
To get started with the Mindee Ruby client library, you can install it by adding
mindee to your Gemfile and then executing
gem install mindee in your terminal.
Once it’s installed, all you have to do to receive your response object is to initialize the Client with your API Key.
require 'mindee' # Init a new client and configure the Invoice API mindee_client = Mindee::Client.new.config_invoice(api_key: 'my-api-key') invoice_data = mindee_client.doc_from_path('/path/to/the/invoice.pdf').parse('invoice') puts invoice_data.document
With the client library, it’s simple to interact with the API and get the extracted fields that you need.
For example, to get the Customer Name from your invoice, you’ll need to add the following to your code:
We’ve included Ruby code examples in our documentation to make it easier for you to get started.