Class: PersonalityInsightsV3

PersonalityInsightsV3

new PersonalityInsightsV3(options)

Parameters:
Name Type Description
options Object
Source:

Methods

profile(params, callback)

Parameters:
Name Type Description
params Object

The parameters to call the service

Properties
Name Type Attributes Default Description
headers Object <optional>

The header parameters.

Properties
Name Type Attributes Default Description
accept-language string <optional>
en

The desired language of the response.

content-type string <optional>
text/plain

The content type of the request: text/plain (the default), text/html, or application/json.

content-language string <optional>
en

The language of the input text for the request: ar (Arabic), en (English), es (Spanish), or ja (Japanese)

accept string <optional>
application/json

The desired content type of the response: application/json (the default) or text/csv

text string <optional>

The text to analyze.

content_items Object <optional>

A JSON input (if 'text' not provided).

raw_scores boolean <optional>
false

include raw results.

csv_headers boolean <optional>
false

If true, column labels are returned with a CSV response; if false (the default), they are not. Applies only when the Accept header is set to text/csv.

consumption_preferences boolean <optional>
false

If true, information about consumption preferences is returned with the results.

callback

The callback.

Source: