Google_WebfontsServiceResource

The "webfonts" collection of methods.

Defined (1)

The class is defined in the following location(s).

/inc/google-api-php-client/src/contrib/Google_WebfontsService.php  
  1. class Google_WebfontsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Retrieves the list of fonts currently served by the Google Web Fonts Developer API 
  6. * (webfonts.list) 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string sort Enables sorting of the list 
  9. * @return Google_WebfontList 
  10. */ 
  11. public function listWebfonts($optParams = array()) { 
  12. $params = array(); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('list', array($params)); 
  15. if ($this->useObjects()) { 
  16. return new Google_WebfontList($data); 
  17. } else { 
  18. return $data;