CodeX-API icon indicating copy to clipboard operation
CodeX-API copied to clipboard

Implementation in Java

Open Aleksov2020 opened this issue 3 years ago • 1 comments

private JSONObject getCompileResult(String code, String input, String language) throws UnirestException { Unirest.setTimeouts(0, 0); HttpResponse<String> response = Unirest.post("https://codex-api.herokuapp.com") .header("Content-Type", "application/x-www-form-urlencoded") .field("code", code) .field("language", language) .field("input", input==null ? "" : input) .asString(); return new JSONObject(response.getBody()); }

Aleksov2020 avatar Nov 25 '22 21:11 Aleksov2020

How is that an issue? its not leetcode discussions.

yossev avatar Jul 09 '24 22:07 yossev