Google_Service_Games_Quests_Resource

The "quests" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Games.php  
  1. class Google_Service_Games_Quests_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Indicates that the currently authorized user will participate in the quest. 
  5. * (quests.accept) 
  6. * @param string $questId The ID of the quest. 
  7. * @param array $optParams Optional parameters. 
  8. * @opt_param string language The preferred language to use for strings returned 
  9. * by this method. 
  10. * @return Google_Service_Games_Quest 
  11. */ 
  12. public function accept($questId, $optParams = array()) 
  13. $params = array('questId' => $questId); 
  14. $params = array_merge($params, $optParams); 
  15. return $this->call('accept', array($params), "Google_Service_Games_Quest"); 
  16.  
  17. /** 
  18. * Get a list of quests for your application and the currently authenticated 
  19. * player. (quests.listQuests) 
  20. * @param string $playerId A player ID. A value of me may be used in place of 
  21. * the authenticated player's ID. 
  22. * @param array $optParams Optional parameters. 
  23. * @opt_param string pageToken The token returned by the previous request. 
  24. * @opt_param int maxResults The maximum number of quest resources to return in 
  25. * the response, used for paging. For any response, the actual number of quest 
  26. * resources returned may be less than the specified maxResults. Acceptable 
  27. * values are 1 to 50, inclusive. (Default: 50). 
  28. * @opt_param string language The preferred language to use for strings returned 
  29. * by this method. 
  30. * @return Google_Service_Games_QuestListResponse 
  31. */ 
  32. public function listQuests($playerId, $optParams = array()) 
  33. $params = array('playerId' => $playerId); 
  34. $params = array_merge($params, $optParams); 
  35. return $this->call('list', array($params), "Google_Service_Games_QuestListResponse");