Skip to content

Commit df53ae0

Browse files
Merge pull request #585 from watson-developer-cloud/profile-csv
Remove csv_headers query param from profile method
2 parents a8e906f + cd9b3dc commit df53ae0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

personality-insights/v3-generated.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ class PersonalityInsightsV3 extends BaseService {
6969
* @param {string} [params.content_language] - The language of the input text for the request: Arabic, English, Japanese, Korean, or Spanish. Regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. The effect of the `content_language` header depends on the `Content-Type` header. When `Content-Type` is `text/plain` or `text/html`, `content_language` is the only way to specify the language. When `Content-Type` is `application/json`, `content_language` overrides a language specified with the `language` parameter of a `ContentItem` object, and content items that specify a different language are ignored; omit this header to base the language on the specification of the content items. You can specify any combination of languages for `content_language` and `Accept-Language`.
7070
* @param {string} [params.accept_language] - The desired language of the response. For two-character arguments, regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. You can specify any combination of languages for the input and response content.
7171
* @param {boolean} [params.raw_scores] - If `true`, a raw score in addition to a normalized percentile is returned for each characteristic; raw scores are not compared with a sample population. If `false` (the default), only normalized percentiles are returned.
72-
* @param {boolean} [params.csv_headers] - 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`.
7372
* @param {boolean} [params.consumption_preferences] - If `true`, information about consumption preferences is returned with the results; if `false` (the default), the response does not include the information.
7473
* @param {Function} [callback] - The callback that handles the response.
7574
* @returns {ReadableStream|void}
@@ -88,7 +87,6 @@ class PersonalityInsightsV3 extends BaseService {
8887
const body = _params.content;
8988
const query = {
9089
raw_scores: _params.raw_scores,
91-
csv_headers: _params.csv_headers,
9290
consumption_preferences: _params.consumption_preferences
9391
};
9492
const parameters = {

test/unit/test.personality_insights.v3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ describe('personality_insights_v3', function() {
109109
const req = personality_insights.profile(params, noop);
110110
const body = Buffer.from(req.body).toString('ascii');
111111
const query_string =
112-
'?version=2016-10-19&raw_scores=true&csv_headers=false&consumption_preferences=true';
112+
'?version=2016-10-19&raw_scores=true&consumption_preferences=true';
113113
assert.equal(req.uri.href, service.url + service_path + query_string);
114114
assert.equal(body, JSON.stringify(params.content));
115115
assert.equal(req.method, 'POST');

0 commit comments

Comments
 (0)