Google_Service_PlusDomains_Activities_Resource

The "activities" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/PlusDomains.php  
  1. class Google_Service_PlusDomains_Activities_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Get an activity. (activities.get) 
  5. * @param string $activityId The ID of the activity to get. 
  6. * @param array $optParams Optional parameters. 
  7. * @return Google_Service_PlusDomains_Activity 
  8. */ 
  9. public function get($activityId, $optParams = array()) 
  10. $params = array('activityId' => $activityId); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('get', array($params), "Google_Service_PlusDomains_Activity"); 
  13.  
  14. /** 
  15. * Create a new activity for the authenticated user. (activities.insert) 
  16. * @param string $userId The ID of the user to create the activity on behalf of. 
  17. * Its value should be "me", to indicate the authenticated user. 
  18. * @param Google_Activity $postBody 
  19. * @param array $optParams Optional parameters. 
  20. * @opt_param bool preview If "true", extract the potential media attachments 
  21. * for a URL. The response will include all possible attachments for a URL,  
  22. * including video, photos, and articles based on the content of the page. 
  23. * @return Google_Service_PlusDomains_Activity 
  24. */ 
  25. public function insert($userId, Google_Service_PlusDomains_Activity $postBody, $optParams = array()) 
  26. $params = array('userId' => $userId, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. return $this->call('insert', array($params), "Google_Service_PlusDomains_Activity"); 
  29.  
  30. /** 
  31. * List all of the activities in the specified collection for a particular user. 
  32. * (activities.listActivities) 
  33. * @param string $userId The ID of the user to get activities for. The special 
  34. * value "me" can be used to indicate the authenticated user. 
  35. * @param string $collection The collection of activities to list. 
  36. * @param array $optParams Optional parameters. 
  37. * @opt_param string pageToken The continuation token, which is used to page 
  38. * through large result sets. To get the next page of results, set this 
  39. * parameter to the value of "nextPageToken" from the previous response. 
  40. * @opt_param string maxResults The maximum number of activities to include in 
  41. * the response, which is used for paging. For any response, the actual number 
  42. * returned might be less than the specified maxResults. 
  43. * @return Google_Service_PlusDomains_ActivityFeed 
  44. */ 
  45. public function listActivities($userId, $collection, $optParams = array()) 
  46. $params = array('userId' => $userId, 'collection' => $collection); 
  47. $params = array_merge($params, $optParams); 
  48. return $this->call('list', array($params), "Google_Service_PlusDomains_ActivityFeed");