The "moments" collection of methods.
More...
|
| call ($name, $arguments, $expected_class=null) |
| TODO: This function needs simplifying.
|
|
| insert ($userId, $collection, Google_Service_Plus_Moment $postBody, $optParams=array()) |
| Record a moment representing a user's action such as making a purchase or commenting on a blog.
|
|
| listMoments ($userId, $collection, $optParams=array()) |
| List all of the moments for a particular user.
|
|
|
| convertToArrayAndStripNulls ($o) |
|
The "moments" collection of methods.
Typical usage is: $plusService = new Google_Service_Plus(...); $moments = $plusService->moments;
◆ 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
-
◆ insert()
Record a moment representing a user's action such as making a purchase or commenting on a blog.
(moments.insert)
- Parameters
-
string | $userId | The ID of the user to record actions for. The only valid values are "me" and the ID of the authenticated user. |
string | $collection | The collection to which to write moments. |
Google_Moment | $postBody | |
array | $optParams | Optional parameters. |
@opt_param bool debug Return the moment as written. Should be used only for debugging.
- Return values
-
◆ listMoments()
Google_Service_Plus_Moments_Resource::listMoments |
( |
| $userId, |
|
|
| $collection, |
|
|
| $optParams = array() ) |
List all of the moments for a particular user.
(moments.listMoments)
- Parameters
-
string | $userId | The ID of the user to get moments for. The special value "me" can be used to indicate the authenticated user. |
string | $collection | The collection of moments to list. |
array | $optParams | Optional parameters. |
@opt_param string maxResults The maximum number of moments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults. @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 targetUrl Only moments containing this targetUrl will be returned. @opt_param string type Only moments of this type will be returned.
- Return values
-
The documentation for this class was generated from the following file:
- lib/google/src/Google/Service/Plus.php