설명 없음

AnalyticsReporting.php 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for AnalyticsReporting (v4).
  19. *
  20. * <p>
  21. * Accesses Analytics report data.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="https://developers.google.com/analytics/devguides/reporting/core/v4/" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_AnalyticsReporting extends Google_Service
  31. {
  32. /** View and manage your Google Analytics data. */
  33. const ANALYTICS =
  34. "https://www.googleapis.com/auth/analytics";
  35. /** View your Google Analytics data. */
  36. const ANALYTICS_READONLY =
  37. "https://www.googleapis.com/auth/analytics.readonly";
  38. public $reports;
  39. /**
  40. * Constructs the internal representation of the AnalyticsReporting service.
  41. *
  42. * @param Google_Client $client
  43. */
  44. public function __construct(Google_Client $client)
  45. {
  46. parent::__construct($client);
  47. $this->rootUrl = 'https://analyticsreporting.googleapis.com/';
  48. $this->servicePath = '';
  49. $this->version = 'v4';
  50. $this->serviceName = 'analyticsreporting';
  51. $this->reports = new Google_Service_AnalyticsReporting_Resource_Reports(
  52. $this,
  53. $this->serviceName,
  54. 'reports',
  55. array(
  56. 'methods' => array(
  57. 'batchGet' => array(
  58. 'path' => 'v4/reports:batchGet',
  59. 'httpMethod' => 'POST',
  60. 'parameters' => array(),
  61. ),
  62. )
  63. )
  64. );
  65. }
  66. }