public class SpokenResultApi
extends java.lang.Object
final String result; try { result = SpokenResultsApi.call("What is the population of France?", new DefaultParameters().setAppId("DEMO")); } catch (SimpleAPIException e) { // error handling }
CommonParameters
,
DefaultCommonParameters
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
call(java.lang.String input,
CommonParameters parameters)
Calls the Wolfram|Alpha spoken result API for the given input and parameters.
|
public static java.lang.String call(java.lang.String input, CommonParameters parameters) throws SimpleApiException
input
- the input, which must not be null
or empty.parameters
- the parameters.SimpleApiException
- if an error occurs during the request.ApiConnectionException
- if an error occurs while connecting or during the connection
to the Wolfram|Alpha server.NoApiResultException
- if Wolfram|Alpha could not produce a result.