Google_SubmissionsServiceResource

The "submissions" 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_SubmissionsServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Inserts a new submission in the specified topic within the specified series. (submissions.insert) 
  6. * @param string $seriesId The decimal ID of the Series. 
  7. * @param string $topicId The decimal ID of the Topic within the Series. 
  8. * @param Google_Submission $postBody 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string unauthToken User identifier for unauthenticated usage mode 
  11. * @opt_param bool anonymous Set to true to mark the new submission as anonymous. 
  12. * @return Google_Submission 
  13. */ 
  14. public function insert($seriesId, $topicId, Google_Submission $postBody, $optParams = array()) { 
  15. $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody); 
  16. $params = array_merge($params, $optParams); 
  17. $data = $this->__call('insert', array($params)); 
  18. if ($this->useObjects()) { 
  19. return new Google_Submission($data); 
  20. } else { 
  21. return $data; 
  22. /** 
  23. * Returns the specified submission within the specified series. (submissions.get) 
  24. * @param string $seriesId The decimal ID of the Series. 
  25. * @param string $submissionId The decimal ID of the Submission within the Series. 
  26. * @param array $optParams Optional parameters. 
  27. * @opt_param string lang The language code for the language the client prefers resuls in. 
  28. * @opt_param bool includeVotes Specifies whether to include the current user's vote 
  29. * @return Google_Submission 
  30. */ 
  31. public function get($seriesId, $submissionId, $optParams = array()) { 
  32. $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId); 
  33. $params = array_merge($params, $optParams); 
  34. $data = $this->__call('get', array($params)); 
  35. if ($this->useObjects()) { 
  36. return new Google_Submission($data); 
  37. } else { 
  38. return $data;