SchooxSharp.Api.Clients.Dashboard.GetUserExams C# (CSharp) Method

GetUserExams() public method

Returns a list of all exams a user has taken so far with information about his or her performance on every exam (e.g. number of attempts, date of last attempt, score, points, passing score). By default only the first 100 people are returned.
public GetUserExams ( int userId, string externalId = null ) : SchooxResponse>
userId int User identifier.
externalId string Sets whether the id given is the external_id of the User. /// By default, the value is "false"
return SchooxResponse>
        public SchooxResponse<List<UsersExam>> GetUserExams(int userId, string externalId = null)
        {
            if (userId <= 0)
                throw new ArgumentOutOfRangeException("userId");

            //GET /dashboard/users/:userid/exams
            var request = SService.GenerateBaseRequest("/dashboard/users/{userId}/exams");
            request.Method = Method.GET;

            request.AddUrlSegment("userId", userId.ToString(CultureInfo.InvariantCulture));
               	request.AddNonBlankQueryString ("external_id", externalId);

            return Execute<List<UsersExam>>(request);
        }