Remove debugging info
This commit is contained in:
parent
ad25f4df24
commit
c28020ee69
16
source/app.d
16
source/app.d
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue