설명 없음

QPXExpress.php 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 QPXExpress (v1).
  19. *
  20. * <p>
  21. * Finds the least expensive flights between an origin and a destination.</p>
  22. *
  23. * <p>
  24. * For more information about this service, see the API
  25. * <a href="http://developers.google.com/qpx-express" target="_blank">Documentation</a>
  26. * </p>
  27. *
  28. * @author Google, Inc.
  29. */
  30. class Google_Service_QPXExpress extends Google_Service
  31. {
  32. public $trips;
  33. /**
  34. * Constructs the internal representation of the QPXExpress service.
  35. *
  36. * @param Google_Client $client
  37. */
  38. public function __construct(Google_Client $client)
  39. {
  40. parent::__construct($client);
  41. $this->rootUrl = 'https://www.googleapis.com/';
  42. $this->servicePath = 'qpxExpress/v1/trips/';
  43. $this->version = 'v1';
  44. $this->serviceName = 'qpxExpress';
  45. $this->trips = new Google_Service_QPXExpress_Resource_Trips(
  46. $this,
  47. $this->serviceName,
  48. 'trips',
  49. array(
  50. 'methods' => array(
  51. 'search' => array(
  52. 'path' => 'search',
  53. 'httpMethod' => 'POST',
  54. 'parameters' => array(),
  55. ),
  56. )
  57. )
  58. );
  59. }
  60. }