googly_cloud_vision
Google Cloud Vision API client library.
A modern, self-contained Elixir client for the Google Cloud Vision API, generated by googly. Built on Req and Jason.
Installation
def deps do
[{:googly_cloud_vision, "~> 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.CloudVision.Operations.cancel(token: token)
Every call returns {:ok, decoded} on success. Failures are
{:error, %Googly.CloudVision.Error{}} for an error response (HTTP 4xx/5xx), or
{:error, exception} (e.g. %Req.TransportError{}) for transport-level failures.