Пример #1
0
 public PostRequest NewCreateUserRequest(string token, dynamic userModel)
 {
     var req = new PostRequest(Environment,
         "/admincenter/v1/users",
         token,
         userModel);
     return req;
 }
Пример #2
0
 public PostRequest NewCreateProgramClassRequest(string token, int programId, dynamic model)
 {
     var req = new PostRequest(Environment,
         string.Format("/courseware/v1/programs/{0}/classes", programId),
         token,
         model);
     return req;
 }
Пример #3
0
 public PostRequest NewEnrollUserInClassRequest(string token, int userId, int classId)
 {
     var req = new PostRequest(Environment,
         string.Format("/courseware/v1/classes/{0}/users/{1}", classId, userId),
         token,
         new { });
     return req;
 }