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

GetUserCurriculums() public method

Returns a list of all curriculums a user is enrolled in with a summary of his or her total training and training information by curriculum (e.g. enrollment/assignment date, due date, total time spent on the curriculum and progress). By default only the first 100 people are returned.
public GetUserCurriculums ( 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<Curriculum>> GetUserCurriculums(int userId, string externalId = null)
        {
            if (userId <= 0)
                throw new ArgumentOutOfRangeException("userId");

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

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

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