public class PersonalityInsights extends WatsonService
Modifier and Type | Field and Description |
---|---|
static String |
VERSION_DATE_2016_10_19 |
defaultHeaders, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION
Constructor and Description |
---|
PersonalityInsights(String versionDate)
Instantiates a new Personality Insights service.
|
PersonalityInsights(String versionDate,
String username,
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(String text)
Accepts text and responds with a
Profile with a tree of characteristics that include personality, needs,
and values. |
ServiceCall<String> |
getProfileAsCSV(ProfileOptions options,
boolean includeHeaders)
Returns a CSV profile.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getToken, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setSkipAuthentication, setUsernameAndPassword, toString
public static final String VERSION_DATE_2016_10_19
public PersonalityInsights(String versionDate)
public ServiceCall<Profile> getProfile(String text)
Profile
with a tree of characteristics that include personality, needs,
and values. text
- Text to analyzeProfile
public ServiceCall<Profile> getProfile(ProfileOptions options)
Profile
with a tree of characteristics that include personality, needs, and values. ProfileOptions
:options
- the ProfileOptions
Profile
public ServiceCall<String> getProfileAsCSV(ProfileOptions options, boolean includeHeaders)
options
- the ProfileOptions
includeHeaders
- if true returns the CSV headersCopyright © 2015–2016 IBM Watson. All rights reserved.