Remove debugging info

This commit is contained in:
Les De Ridder 2017-02-14 22:32:48 +01:00
parent ad25f4df24
commit c28020ee69
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 10 additions and 6 deletions

View File

@ -318,8 +318,6 @@ class ApiClient
requestString = message.serializeToJsonString;
}
writeln("C> " ~ requestString);
auto response = requestHTTP(Endpoint,
(scope request) {
request.method = HTTPMethod.POST;
@ -330,18 +328,23 @@ class ApiClient
}
).bodyReader.readAllUTF8;
writeln("S> " ~ response);
return response.parseJsonString.deserializeJson!ApiResponse;
}
}
shared static this()
{
auto apiClient = new ApiClient("nl_BE");
apiClient.connect();
apiClient.login1("67030514325746009", "0470", "854404");
write("Card number: ");
auto cardNumber = readln()[0 .. $-1];
write("Phone zone: ");
auto phoneZone = readln()[0 .. $-1];
write("Phone subscriber: ");
auto phoneSubscriber = readln()[0 .. $-1];
apiClient.login1(cardNumber, phoneZone, phoneSubscriber);
write("OTP: ");
auto otp = readln()[0 .. $-1];
auto password = fromStringz(getpass("Password: ")).idup;
@ -358,3 +361,4 @@ shared static this()
listenHTTP(settings, router);
}