public class Algorithm
extends java.lang.Object
Constructor and Description |
---|
Algorithm(HttpClient client,
AlgorithmRef algoRef) |
Modifier and Type | Method and Description |
---|---|
AlgoResponse |
pipe(java.lang.Object input)
Calls the Algorithmia API on a given input.
|
FutureAlgoResponse |
pipeAsync(java.lang.Object input)
Calls the Algorithmia API on a given input asynchronously.
|
public Algorithm(HttpClient client, AlgorithmRef algoRef)
public AlgoResponse pipe(java.lang.Object input) throws APIException
input
- algorithm input, will automatically be converted into JSONAPIException
- if there is a problem communication with the Algorithmia API.public FutureAlgoResponse pipeAsync(java.lang.Object input)
input
- algorithm input, will automatically be converted into JSON