public final class ConversationService extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION_DATE_2016_07_11
The Constant VERSION_DATE_2016-07-11.
|
static java.lang.String |
VERSION_DATE_2016_09_20
The Constant VERSION_DATE_2016-09-20.
|
static java.lang.String |
VERSION_DATE_2017_02_03
The Constant VERSION_DATE_2017-02-03.
|
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
ConversationService(java.lang.String versionDate)
Returns an instance of the Conversation Service using the service's default endpoint (URL).
|
ConversationService(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Returns an instance of the Conversation Service using the service's default endpoint (URL), username and password.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<MessageResponse> |
message(java.lang.String workspaceId,
MessageRequest request)
Sends a message to the service through a
MessageRequest. |
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toStringpublic static final java.lang.String VERSION_DATE_2017_02_03
public static final java.lang.String VERSION_DATE_2016_09_20
public static final java.lang.String VERSION_DATE_2016_07_11
public ConversationService(java.lang.String versionDate)
versionDate - Version of the API which is to be invoked by the REST client.public ConversationService(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
versionDate - Version of the API which is to be invoked by the REST client.username - the usernamepassword - the passwordpublic ServiceCall<MessageResponse> message(java.lang.String workspaceId, MessageRequest request)
MessageRequest.workspaceId - the workspace idrequest - the request