Get user recent activity

The users.getUserRecentActivity method on a Client instance makes a GET request to the users/{user}/recent_activity endpoint and returns an array containing the specified user’s recent activity.

Example

const events = await api.users.getUserRecentActivity(14544646);

Parameters

ParameterTypeOptionalDescription
usernumberID of the user to get their recent activity from
optionsGetUserRecentActivityOptions

options.query

ParameterTypeOptionalDescription
limitnumberLimit number of results
offsetnumberPagination offset

Returns

Promise<UserEvent[]>;

Types

Possible Exceptions

See the error handling documentation for more information.

  • invalid_json_syntax
  • network_error
  • unexpected_response

Notice that something is missing? Found a typo? Think something's incomplete? Or think that something can be explained better? Feel free to open a pull request or submit an issue on the library's Github repository .