public static SessionKeyModel LoginUser(string username, string authCode) { string loginUrl = "users/login"; UserModel user = new UserModel { Username = username, Password = authCode }; var response = requester.Post<SessionKeyModel>(loginUrl, user); return response; }
public static SessionKeyModel RegisterUser(string username, string authCode) { string registerUrl = "users/register"; UserModel user = new UserModel { Username = username, Password = authCode }; var response = requester.Post<SessionKeyModel>(registerUrl, user); return response; }