PlayableLocations.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. namespace Google\Service;
  18. use Google\Client;
  19. /**
  20. * Service definition for PlayableLocations (v3).
  21. *
  22. * <p>
  23. </p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/maps/contact-sales/" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class PlayableLocations extends \Google\Service
  33. {
  34. public $v3;
  35. /**
  36. * Constructs the internal representation of the PlayableLocations service.
  37. *
  38. * @param Client|array $clientOrConfig The client used to deliver requests, or a
  39. * config array to pass to a new Client instance.
  40. * @param string $rootUrl The root URL used for requests to the service.
  41. */
  42. public function __construct($clientOrConfig = [], $rootUrl = null)
  43. {
  44. parent::__construct($clientOrConfig);
  45. $this->rootUrl = $rootUrl ?: 'https://playablelocations.googleapis.com/';
  46. $this->servicePath = '';
  47. $this->batchPath = 'batch';
  48. $this->version = 'v3';
  49. $this->serviceName = 'playablelocations';
  50. $this->v3 = new PlayableLocations\Resource\V3(
  51. $this,
  52. $this->serviceName,
  53. 'v3',
  54. [
  55. 'methods' => [
  56. 'logImpressions' => [
  57. 'path' => 'v3:logImpressions',
  58. 'httpMethod' => 'POST',
  59. 'parameters' => [],
  60. ],'logPlayerReports' => [
  61. 'path' => 'v3:logPlayerReports',
  62. 'httpMethod' => 'POST',
  63. 'parameters' => [],
  64. ],'samplePlayableLocations' => [
  65. 'path' => 'v3:samplePlayableLocations',
  66. 'httpMethod' => 'POST',
  67. 'parameters' => [],
  68. ],
  69. ]
  70. ]
  71. );
  72. }
  73. }
  74. // Adding a class alias for backwards compatibility with the previous class name.
  75. class_alias(PlayableLocations::class, 'Google_Service_PlayableLocations');