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" |
Résultat | 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);
}