public class Judge0JavaScriptExecutionTool extends Object
Constructor and Description |
---|
Judge0JavaScriptExecutionTool(String apiKey)
Constructs a new instance with the provided Rapid API key.
|
Judge0JavaScriptExecutionTool(String apiKey,
boolean fixCodeIfNeeded,
Duration timeout)
Constructs a new instance with the provided Rapid API key, a flag to control whether to fix the code, and a timeout.
|
public Judge0JavaScriptExecutionTool(String apiKey)
apiKey
- The Rapid API key. You can subscribe to the free plan (Basic) here: https://rapidapi.com/judge0-official/api/judge0-ce/pricingpublic Judge0JavaScriptExecutionTool(String apiKey, boolean fixCodeIfNeeded, Duration timeout)
apiKey
- Rapid API key. You can subscribe to the free plan (Basic) here: https://rapidapi.com/judge0-official/api/judge0-ce/pricingfixCodeIfNeeded
- Judge0 can return result of an execution if it was printed to the console.
If provided JS code does not print result to the console, attempt will be made to fix it.timeout
- Timeout for calling Judge0.Copyright © 2023. All rights reserved.