Google Analytics Core Reporting V4 API Client for Elixir
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
mix espec
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)
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ga_api_client.