public class PersonalityInsights extends WatsonService
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
PersonalityInsights(java.lang.String versionDate)
Instantiates a new `PersonalityInsights`.
|
PersonalityInsights(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Instantiates a new `PersonalityInsights` with username and password.
|
Modifier and Type | Method and Description |
---|---|
ServiceCall<java.lang.String> |
getProfileAsCSV(ProfileOptions profileOptions,
boolean includeHeaders) |
ServiceCall<Profile> |
profile(ProfileOptions profileOptions)
Generates a personality profile based on input text.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toString
public PersonalityInsights(java.lang.String versionDate)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.public PersonalityInsights(java.lang.String versionDate, java.lang.String username, java.lang.String password)
versionDate
- The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.username
- the usernamepassword
- the passwordpublic ServiceCall<Profile> profile(ProfileOptions profileOptions)
profileOptions
- the ProfileOptions
containing the options for the callServiceCall
with a response type of Profile
public ServiceCall<java.lang.String> getProfileAsCSV(ProfileOptions profileOptions, boolean includeHeaders)