Activities: list

Requires authorization

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

Request

HTTP request

GET https://www.googleapis.com/plusDomains/v1/people/userId/activities/collection

Parameters

Parameter name Value Description
Required parameters
collection string The collection of activities to list.

Acceptable values are:
  • "user": All activities created by the specified user that the authenticated user is authorized to view.
userId string The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user.
Optional parameters
maxResults unsigned integer 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. Acceptable values are 1 to 100, inclusive. (Default: 20)
pageToken string 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.

Authorization

To learn when scopes are required, see Google+ Domains scopes.

Scope
https://www.googleapis.com/auth/plus.stream.read
https://www.googleapis.com/auth/plus.me

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "plus#activityFeed",
  "etag": etag,
  "nextPageToken": string,
  "selfLink": string,
  "nextLink": string,
  "title": string,
  "updated": datetime,
  "id": string,
  "items": [
    activities Resource
  ]
}
Property name Value Description Notes
kind string Identifies this resource as a collection of activities. Value: "plus#activityFeed".
etag etag ETag of this response for caching purposes.
nextPageToken string The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
title string The title of this collection of activities, which is a truncated portion of the content.
updated datetime The time at which this collection of activities was last updated. Formatted as an RFC 3339 timestamp.
id string The ID of this collection of activities. Deprecated.
items[] list The activities in this page of results.

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.

Enviar comentarios sobre…