public class PersonalityInsights extends WatsonService
VERSION| Constructor and Description | 
|---|
| PersonalityInsights()Instantiates a new Personality Insights service. | 
| Modifier and Type | Method and Description | 
|---|---|
| Profile | getProfile(ProfileOptions options)Returns a  Profilewith a tree of characteristics that include personality, needs, and
 values. | 
| Profile | getProfile(String text)Accepts text and responds with a  Profilewith a tree of characteristics that include
 personality, needs, and values. | 
| String | getProfileAsCSV(ProfileOptions options,
               boolean includeHeaders)Returns a CSV profile. | 
configureHttpClient, execute, executeRequest, executeWithoutResponse, getApiKey, getEndPoint, getName, getToken, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toStringpublic PersonalityInsights()
public Profile getProfile(String text)
Profile with a tree of characteristics that include
 personality, needs, and values. 
     PersonalityInsights service = new PersonalityInsights();
     service.setUsernameAndPassword("username", "password");
 
     String text = "write the text with at least 100 unique words here..."
     Profile profile = service.getProfile(text);
     System.out.println(profile);
 text - Text to analyzeProfilepublic Profile getProfile(ProfileOptions options)
Profile with a tree of characteristics that include personality, needs, and
 values. ProfileOptions:
 
 
     PersonalityInsights service = new PersonalityInsights();
     service.setUsernameAndPassword("username", "password");
 
     String text = "write the text with at least 100 unique words here..."
     ContentItem cItem = new ContentItem().content(text).created(new Date());
     ProfileOptions options = new ProfileOptions().contentItems(Arrays.asList(cItem));
 
     Profile profile = service.getProfile(options);
 
     System.out.println(profile);
 options - the ProfileOptionsProfilepublic String getProfileAsCSV(ProfileOptions options, boolean includeHeaders)
options - the ProfileOptionsincludeHeaders - if true returns the CSV headersCopyright © 2015–2016. All rights reserved.