Google Analytics核心报告API v4 PHP库方法/功能参考

It seems counterintuitive, however it looks like global reference for Google Analytics reporting API v4 PHP library does not exist. Google developer support has a couple of small pages only: one with a quick start guide, another with a few examples. Not nearly enough if one wants to utilize the library.

Is there any function reference guide for functions/methods of this library?

I can see it here AnalyticsReporting

The examples for the library can be found on the analytics documentation page here

// Create the DateRange object.
$dateRange = new Google_Service_AnalyticsReporting_DateRange();
$dateRange->setStartDate("2015-06-15");
$dateRange->setEndDate("2015-06-30");

// Create the Metrics object.
$sessions = new Google_Service_AnalyticsReporting_Metric();
$sessions->setExpression("ga:sessions");
$sessions->setAlias("sessions");

//Create the Dimensions object.
$browser = new Google_Service_AnalyticsReporting_Dimension();
$browser->setName("ga:browser");

// Create the ReportRequest object.
$request = new Google_Service_AnalyticsReporting_ReportRequest();
$request->setViewId("XXXX");
$request->setDateRanges($dateRange);
$request->setDimensions(array($browser));
$request->setMetrics(array($sessions));

$body = new Google_Service_AnalyticsReporting_GetReportsRequest();
$body->setReportRequests( array( $request) );
return $analyticsreporting->reports->batchGet( $body );

There is even a quick start