Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
Google_Service_PlusDomains_Activities_Resource Class Reference

The "activities" collection of methods. More...

Inheritance diagram for Google_Service_PlusDomains_Activities_Resource:
Google_Service_Resource

Public Member Functions

 call ($name, $arguments, $expected_class=null)
 TODO: This function needs simplifying.
 
 get ($activityId, $optParams=array())
 Get an activity.
 
 insert ($userId, Google_Service_PlusDomains_Activity $postBody, $optParams=array())
 Create a new activity for the authenticated user.
 
 listActivities ($userId, $collection, $optParams=array())
 List all of the activities in the specified collection for a particular user.
 

Protected Member Functions

 convertToArrayAndStripNulls ($o)
 

Detailed Description

The "activities" collection of methods.

Typical usage is: $plusDomainsService = new Google_Service_PlusDomains(...); $activities = $plusDomainsService->activities;

Member Function Documentation

◆ call()

Google_Service_Resource::call ( $name,
$arguments,
$expected_class = null )
inherited

TODO: This function needs simplifying.

Parameters
$name
$arguments
$expected_class- optional, the expected class name
Return values
Google_Http_Request|expected_class
Exceptions
Google_Exception

◆ get()

Google_Service_PlusDomains_Activities_Resource::get ( $activityId,
$optParams = array() )

Get an activity.

(activities.get)

Parameters
string$activityIdThe ID of the activity to get.
array$optParamsOptional parameters.
Return values
Google_Service_PlusDomains_Activity

◆ insert()

Google_Service_PlusDomains_Activities_Resource::insert ( $userId,
Google_Service_PlusDomains_Activity $postBody,
$optParams = array() )

Create a new activity for the authenticated user.

(activities.insert)

Parameters
string$userIdThe ID of the user to create the activity on behalf of. Its value should be "me", to indicate the authenticated user.
Google_Activity$postBody
array$optParamsOptional parameters.

@opt_param bool preview If "true", extract the potential media attachments for a URL. The response will include all possible attachments for a URL, including video, photos, and articles based on the content of the page.

Return values
Google_Service_PlusDomains_Activity

◆ listActivities()

Google_Service_PlusDomains_Activities_Resource::listActivities ( $userId,
$collection,
$optParams = array() )

List all of the activities in the specified collection for a particular user.

(activities.listActivities)

Parameters
string$userIdThe ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user.
string$collectionThe collection of activities to list.
array$optParamsOptional parameters.

@opt_param string pageToken The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. @opt_param string maxResults The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.

Return values
Google_Service_PlusDomains_ActivityFeed

The documentation for this class was generated from the following file: