Google_SubmissionsServiceResource
The "submissions" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_ModeratorService.php
- class Google_SubmissionsServiceResource extends Google_ServiceResource {
- /**
- * Inserts a new submission in the specified topic within the specified series. (submissions.insert)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $topicId The decimal ID of the Topic within the Series.
- * @param Google_Submission $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string unauthToken User identifier for unauthenticated usage mode
- * @opt_param bool anonymous Set to true to mark the new submission as anonymous.
- * @return Google_Submission
- */
- public function insert($seriesId, $topicId, Google_Submission $postBody, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'topicId' => $topicId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- $data = $this->__call('insert', array($params));
- if ($this->useObjects()) {
- return new Google_Submission($data);
- } else {
- return $data;
- }
- }
- /**
- * Returns the specified submission within the specified series. (submissions.get)
- *
- * @param string $seriesId The decimal ID of the Series.
- * @param string $submissionId The decimal ID of the Submission within the Series.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string lang The language code for the language the client prefers results in.
- * @opt_param bool includeVotes Specifies whether to include the current user's vote
- * @return Google_Submission
- */
- public function get($seriesId, $submissionId, $optParams = array()) {
- $params = array('seriesId' => $seriesId, 'submissionId' => $submissionId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_Submission($data);
- } else {
- return $data;
- }
- }
- }