googly_cloud_storage

Copy Markdown View Source

Google Cloud Storage JSON API client library. Stores and retrieves potentially large, immutable data objects.

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

Installation

def deps do
  [{:googly_cloud_storage, "~> 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.CloudStorage.Objects.bulk_restore(token: token)

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

Docs