googly_document_ai

Google Cloud Document AI API client library.

A modern, self-contained Elixir client for the Google Cloud Document AI API, generated by googly. Built on Req and Jason.

Installation

def deps do
[{:googly_document_ai, "~> 0.1.0"}]
end

Usage

Authentication is your concern — pass an OAuth2 bearer token (e.g. from Goth) via the :token option:

token = Goth.fetch!(MyApp.Goth).token
{:ok, result} = Googly.DocumentAI.Operations.delete(token: token)

Every call returns {:ok, decoded} on success. Failures are {:error, %Googly.DocumentAI.Error{}} for an error response (HTTP 4xx/5xx), or {:error, exception} (e.g. %Req.TransportError{}) for transport-level failures.

Docs