public class AlchemyDataNews extends AlchemyService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COUNT
The Constant COUNT (value is "count").
|
static java.lang.String |
END
The Constant END.
|
static java.lang.String |
RETURN
The Constant String RETURN (value is "return").
|
static java.lang.String |
START
The Constant START.
|
static java.lang.String |
TIME_SLICE
The Constant TIME_SLICE.
|
ENDPOINT, JSONP, OUTPUT_MODEdefaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
AlchemyDataNews()
Instantiates a new alchemy data news service.
|
AlchemyDataNews(java.lang.String apiKey)
Instantiates a new alchemy data news service by apiKey.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<DocumentsResult> |
getNewsDocuments(java.util.Map<java.lang.String,java.lang.Object> parameters)
Gets the news documents.
|
ServiceCall<VolumeResult> |
getVolume(java.lang.String start,
java.lang.String end,
java.lang.String timeSlice)
Get a handle on how many documents are relevant for your query.
|
getInputFormat, processServiceCall, setAuthenticationconfigureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, setApiKey, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toStringpublic static final java.lang.String COUNT
public static final java.lang.String END
public static final java.lang.String RETURN
public static final java.lang.String START
public static final java.lang.String TIME_SLICE
public AlchemyDataNews()
public AlchemyDataNews(java.lang.String apiKey)
apiKey - the api keypublic ServiceCall<DocumentsResult> getNewsDocuments(java.util.Map<java.lang.String,java.lang.Object> parameters)
parameters - the parameterspublic ServiceCall<VolumeResult> getVolume(java.lang.String start, java.lang.String end, java.lang.String timeSlice)
start - String the time (in UTC seconds) of the beginning of the query duration,end - String the time (in UTC seconds) of the end of the query duration.timeSlice - String the duration (in seconds) of each time slice.VolumeResult