public final class ConversationService extends WatsonService
Modifier and Type | Field and Description |
---|---|
static String |
VERSION_DATE_2016_07_11
The Constant VERSION_DATE_2016-07-11.
|
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
ConversationService(String versionDate)
Returns an instance of the Conversation Service using the service's default endpoint (URL).
|
ConversationService(String versionDate,
String username,
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(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, toString
public static final String VERSION_DATE_2016_07_11
public ConversationService(String versionDate)
versionDate
- Version of the API which is to be invoked by the REST client.public ConversationService(String versionDate, String username, String password)
versionDate
- Version of the API which is to be invoked by the REST client.username
- the usernamepassword
- the passwordpublic ServiceCall<MessageResponse> message(String workspaceId, MessageRequest request)
MessageRequest
.workspaceId
- the workspace idrequest
- the requestCopyright © 2015–2016 IBM Watson. All rights reserved.