Google_TextServiceResource

The "text" collection of methods.

Defined (1)

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

/google-api/src/contrib/Google_FreebaseService.php  
  1. class Google_TextServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Returns blob attached to node at specified id as HTML (text.get) 
  6. * @param string $id The id of the item that you want data about 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string maxlength The max number of characters to return. Valid only for 'plain' format. 
  9. * @opt_param string format Sanitizing transformation. 
  10. * @return Google_ContentserviceGet 
  11. */ 
  12. public function get($id, $optParams = array()) { 
  13. $params = array('id' => $id); 
  14. $params = array_merge($params, $optParams); 
  15. $data = $this->__call('get', array($params)); 
  16. if ($this->useObjects()) { 
  17. return new Google_ContentserviceGet($data); 
  18. } else { 
  19. return $data;