retrieveUserRecentLogins method
Retrieves the last number of login records for a user.
@param {String} userId The Id of the user. @param {num} offset The initial record. e.g. 0 is the last login, 100 will be the 100th most recent login. @param {num} limit (Optional, defaults to 10) The number of records to retrieve. @returns {Promise<ClientResponse
Implementation
Future<ClientResponse<RecentLoginResponse, Errors>> retrieveUserRecentLogins(
String userId, num offset, num limit) {
return _start<RecentLoginResponse, Errors>()
.withUri('/api/user/recent-login')
.withParameter('userId', userId)
.withParameter('offset', offset)
.withParameter('limit', limit)
.withMethod('GET')
.withResponseHandler(defaultResponseHandlerBuilder(
(d) => RecentLoginResponse.fromJson(d)))
.go();
}