public class PersonalityInsights extends WatsonService
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
VERSION_DATE_2016_10_19
The Constant VERSION_DATE_2016_10_19.
|
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
PersonalityInsights(java.lang.String versionDate)
Instantiates a new Personality Insights service.
|
PersonalityInsights(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Instantiates a new personality insights service by username and password.
|
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<Profile> |
getProfile(ProfileOptions options)
Returns a
Profile with a tree of characteristics that include personality, needs, and values. |
ServiceCall<Profile> |
getProfile(java.lang.String text)
Accepts text and responds with a
Profile with a tree of characteristics that include personality, needs,
and values. |
ServiceCall<java.lang.String> |
getProfileAsCSV(ProfileOptions options,
boolean includeHeaders)
Returns a CSV profile.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toStringpublic static final java.lang.String VERSION_DATE_2016_10_19
public PersonalityInsights(java.lang.String versionDate)
versionDate - the version datepublic PersonalityInsights(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
versionDate - the version dateusername - the usernamepassword - the passwordpublic ServiceCall<Profile> getProfile(java.lang.String text)
Profile with a tree of characteristics that include personality, needs,
and values. text - Text to analyzeProfilepublic ServiceCall<Profile> getProfile(ProfileOptions options)
Profile with a tree of characteristics that include personality, needs, and values. ProfileOptions:options - the ProfileOptionsProfilepublic ServiceCall<java.lang.String> getProfileAsCSV(ProfileOptions options, boolean includeHeaders)
options - the ProfileOptionsincludeHeaders - if true returns the CSV headers