説明なし

Webfonts.php 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 Webfonts (v1).
  19. *
  20. * <p>
  21. * Accesses the metadata for all families served by Google Fonts, providing a
  22. * list of families currently available (including available styles and a list
  23. * of supported script subsets).</p>
  24. *
  25. * <p>
  26. * For more information about this service, see the API
  27. * <a href="https://developers.google.com/fonts/docs/developer_api" target="_blank">Documentation</a>
  28. * </p>
  29. *
  30. * @author Google, Inc.
  31. */
  32. class Google_Service_Webfonts extends Google_Service
  33. {
  34. public $webfonts;
  35. /**
  36. * Constructs the internal representation of the Webfonts service.
  37. *
  38. * @param Google_Client $client
  39. */
  40. public function __construct(Google_Client $client)
  41. {
  42. parent::__construct($client);
  43. $this->rootUrl = 'https://www.googleapis.com/';
  44. $this->servicePath = 'webfonts/v1/';
  45. $this->version = 'v1';
  46. $this->serviceName = 'webfonts';
  47. $this->webfonts = new Google_Service_Webfonts_Resource_Webfonts(
  48. $this,
  49. $this->serviceName,
  50. 'webfonts',
  51. array(
  52. 'methods' => array(
  53. 'list' => array(
  54. 'path' => 'webfonts',
  55. 'httpMethod' => 'GET',
  56. 'parameters' => array(
  57. 'sort' => array(
  58. 'location' => 'query',
  59. 'type' => 'string',
  60. ),
  61. ),
  62. ),
  63. )
  64. )
  65. );
  66. }
  67. }