Google_ResponsesServiceResource

The "responses" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_ModeratorService.php  
  1. class Google_ResponsesServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Inserts a response for the specified submission in the specified topic within the specified 
  6. * series. (responses.insert) 
  7. * @param string $seriesId The decimal ID of the Series. 
  8. * @param string $topicId The decimal ID of the Topic within the Series. 
  9. * @param string $parentSubmissionId The decimal ID of the parent Submission within the Series. 
  10. * @param Google_Submission $postBody 
  11. * @param array $optParams Optional parameters. 
  12. * @opt_param string unauthToken User identifier for unauthenticated usage mode 
  13. * @opt_param bool anonymous Set to true to mark the new submission as anonymous. 
  14. * @return Google_Submission 
  15. */ 
  16. public function insert($seriesId, $topicId, $parentSubmissionId, Google_Submission $postBody, $optParams = array()) { 
  17. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'parentSubmissionId' => $parentSubmissionId, 'postBody' => $postBody); 
  18. $params = array_merge($params, $optParams); 
  19. $data = $this->__call('insert', array($params)); 
  20. if ($this->useObjects()) { 
  21. return new Google_Submission($data); 
  22. } else { 
  23. return $data; 
  24. /** 
  25. * Lists or searches the responses for the specified submission within the specified series and 
  26. * returns the search results. (responses.list) 
  27. * @param string $seriesId The decimal ID of the Series. 
  28. * @param string $submissionId The decimal ID of the Submission within the Series. 
  29. * @param array $optParams Optional parameters. 
  30. * @opt_param string max-results Maximum number of results to return. 
  31. * @opt_param string sort Sort order. 
  32. * @opt_param string author Restricts the results to submissions by a specific author. 
  33. * @opt_param string start-index Index of the first result to be retrieved. 
  34. * @opt_param string q Search query. 
  35. * @opt_param bool hasAttachedVideo Specifies whether to restrict to submissions that have videos attached. 
  36. * @return Google_SubmissionList 
  37. */ 
  38. public function listResponses($seriesId, $submissionId, $optParams = array()) { 
  39. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId); 
  40. $params = array_merge($params, $optParams); 
  41. $data = $this->__call('list', array($params)); 
  42. if ($this->useObjects()) { 
  43. return new Google_SubmissionList($data); 
  44. } else { 
  45. return $data;