Using Elixir Google Reporting APIs

Hello everybody!
I’m trying to implement the official Google Analytics Reporting API Elixir package (https://github.com/googleapis/elixir-google-api/tree/master/clients/analytics_reporting) in a personal project, but I can not find any working example out there.
While it’s well documented in the code, it’s still not clear how to properly use those APIs.

Have you ever tried to implement those APIs? Do you know where can I read a working example?
Thanks a lot!

Hello
Probably a bit late, but I also ran into little documentation / examples.

Here is something that works for me :

...
@googleViewId "ga:XXXXXX"

def google_analytics_authenticate() do
    {:ok, google_bearer_token} = Goth.fetch(YourAppName.Goth)
    google_bearer_token.token
end

def google_analytics_query() do
    conn =
      authenticate()
      |> GoogleApi.AnalyticsReporting.V4.Connection.new()

    {:ok, %Model.GetReportsResponse{reports: [%Model.Report{} = resp]}} =
      conn
      |> Reports.analyticsreporting_reports_batch_get(
        body: %Model.GetReportsRequest{
          reportRequests: [
            %Model.ReportRequest{
              viewId: @googleViewId,
              dateRanges: [
                %Model.DateRange{
                  startDate: "2021-10-05",
                  endDate: "2021-10-22"
                }
              ],
              dimensions: [
                %Model.Dimension{
                  name: "ga:browser"
                },
                %Model.Dimension{
                  name: "ga:sessionDurationBucket"
                }
              ],
              metrics: [%Model.Metric{expression: "ga:users"}]
            }
          ]
        }
      )
    resp
end

I’m also implementing google analytics API but I’m not able to do this. would you please help in this scenario.