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,
IamOptions iamOptions)
Instantiates a new `PersonalityInsights` with IAM.
|
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<Profile> |
profile(ProfileOptions profileOptions)
Get profile.
|
ServiceCall<java.io.InputStream> |
profileAsCsv(ProfileOptions profileOptions,
boolean includeHeaders)
Get profile.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, 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 PersonalityInsights(java.lang.String versionDate, IamOptions iamOptions)
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.iamOptions
- the options for authenticating through IAMpublic ServiceCall<Profile> profile(ProfileOptions profileOptions)
profileOptions
- the ProfileOptions
containing the options for the callServiceCall
with a response type of Profile
public ServiceCall<java.io.InputStream> profileAsCsv(ProfileOptions profileOptions, boolean includeHeaders)
profileOptions
- the ProfileOptions
containing the options for the callincludeHeaders
- the boolean saying whether or not to include headers in the responseServiceCall
with a response type of InputStream