Google_SeriesServiceResource

The "series" collection of methods.

Defined (1)

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

/google-api-php-client/src/contrib/Google_ModeratorService.php  
  1. class Google_SeriesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Inserts a new series. (series.insert) 
  6. * @param Google_Series $postBody 
  7. * @param array $optParams Optional parameters. 
  8. * @return Google_Series 
  9. */ 
  10. public function insert(Google_Series $postBody, $optParams = array()) { 
  11. $params = array('postBody' => $postBody); 
  12. $params = array_merge($params, $optParams); 
  13. $data = $this->__call('insert', array($params)); 
  14. if ($this->useObjects()) { 
  15. return new Google_Series($data); 
  16. } else { 
  17. return $data; 
  18. /** 
  19. * Updates the specified series. This method supports patch semantics. (series.patch) 
  20. * @param string $seriesId The decimal ID of the Series. 
  21. * @param Google_Series $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Series 
  24. */ 
  25. public function patch($seriesId, Google_Series $postBody, $optParams = array()) { 
  26. $params = array('seriesId' => $seriesId, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('patch', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_Series($data); 
  31. } else { 
  32. return $data; 
  33. /** 
  34. * Searches the series and returns the search results. (series.list) 
  35. * @param array $optParams Optional parameters. 
  36. * @opt_param string max-results Maximum number of results to return. 
  37. * @opt_param string q Search query. 
  38. * @opt_param string start-index Index of the first result to be retrieved. 
  39. * @return Google_SeriesList 
  40. */ 
  41. public function listSeries($optParams = array()) { 
  42. $params = array(); 
  43. $params = array_merge($params, $optParams); 
  44. $data = $this->__call('list', array($params)); 
  45. if ($this->useObjects()) { 
  46. return new Google_SeriesList($data); 
  47. } else { 
  48. return $data; 
  49. /** 
  50. * Updates the specified series. (series.update) 
  51. * @param string $seriesId The decimal ID of the Series. 
  52. * @param Google_Series $postBody 
  53. * @param array $optParams Optional parameters. 
  54. * @return Google_Series 
  55. */ 
  56. public function update($seriesId, Google_Series $postBody, $optParams = array()) { 
  57. $params = array('seriesId' => $seriesId, 'postBody' => $postBody); 
  58. $params = array_merge($params, $optParams); 
  59. $data = $this->__call('update', array($params)); 
  60. if ($this->useObjects()) { 
  61. return new Google_Series($data); 
  62. } else { 
  63. return $data; 
  64. /** 
  65. * Returns the specified series. (series.get) 
  66. * @param string $seriesId The decimal ID of the Series. 
  67. * @param array $optParams Optional parameters. 
  68. * @return Google_Series 
  69. */ 
  70. public function get($seriesId, $optParams = array()) { 
  71. $params = array('seriesId' => $seriesId); 
  72. $params = array_merge($params, $optParams); 
  73. $data = $this->__call('get', array($params)); 
  74. if ($this->useObjects()) { 
  75. return new Google_Series($data); 
  76. } else { 
  77. return $data;