/ga_api_client_ex

Google Analytics API client for Elixir

Primary LanguageElixir

Build Status

GaApiClient

Google Analytics Core Reporting V4 API Client for Elixir

Installation

If available in Hex, the package can be installed by adding ga_api_client to your list of dependencies in mix.exs:

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

Running tests

mix espec

Building simple query

iex> report_request = GaApiClient.ReportRequest.build("12345") # view id iex> report_requests = GaApiClient.ReportRequests.build(report_request) iex> profile = %GaApiClient.Profile{ access_token: "foobar" } iex> GaApiClient.Connection.client(profile) |> GaApiClient.Connection.get_batch(report_requests)

Docs

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ga_api_client.