You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** JSON, plain text, or HTML input that contains the content to be analyzed. For JSON input, provide an object of type `ToneInput`. */
270
268
tone_input: ToneInput|string;
271
-
/** The type of the input. A character encoding can be specified by including a `charset` parameter. For example, 'text/plain;charset=utf-8'. */
272
-
content_type?: ToneConstants.ContentType|string;
273
269
/** Indicates whether the service is to return an analysis of each individual sentence in addition to its analysis of the full document. If `true` (the default), the service returns results for each sentence. */
274
270
sentences?: boolean;
275
271
/** **`2017-09-21`:** Deprecated. The service continues to accept the parameter for backward-compatibility, but the parameter no longer affects the response. **`2016-05-19`:** A comma-separated list of tones for which the service is to return its analysis of the input; the indicated tones apply both to the full document and to individual sentences of the document. You can specify one or more of the valid values. Omit the parameter to request results for all three tones. */
276
-
tones?: string[];
272
+
tones?: ToneConstants.Tones[]|string[];
277
273
/** The language of the input text for the request: English or French. Regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. The input content must match the specified language. Do not submit content that contains both languages. You can use different languages for **Content-Language** and **Accept-Language**. * **`2017-09-21`:** Accepts `en` or `fr`. * **`2016-05-19`:** Accepts only `en`. */
/** 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 use different languages for **Content-Language** and **Accept-Language**. */
/** The type of the input. A character encoding can be specified by including a `charset` parameter. For example, 'text/plain;charset=utf-8'. */
278
+
content_type?: ToneConstants.ContentType|string;
281
279
headers?: Object;
282
280
return_response?: boolean;
283
281
}
284
282
285
283
/** Constants for the `tone` operation. */
286
284
exportnamespaceToneConstants{
287
-
/** The type of the input. A character encoding can be specified by including a `charset` parameter. For example, 'text/plain;charset=utf-8'. */
288
-
exportenumContentType{
289
-
APPLICATION_JSON='application/json',
290
-
TEXT_PLAIN='text/plain',
291
-
TEXT_HTML='text/html',
292
-
}
293
-
/** Tones */
285
+
/** **`2017-09-21`:** Deprecated. The service continues to accept the parameter for backward-compatibility, but the parameter no longer affects the response. **`2016-05-19`:** A comma-separated list of tones for which the service is to return its analysis of the input; the indicated tones apply both to the full document and to individual sentences of the document. You can specify one or more of the valid values. Omit the parameter to request results for all three tones. */
294
286
exportenumTones{
295
287
EMOTION='emotion',
296
288
LANGUAGE='language',
@@ -315,6 +307,12 @@ namespace ToneAnalyzerV3 {
315
307
ZH_CN='zh-cn',
316
308
ZH_TW='zh-tw',
317
309
}
310
+
/** The type of the input. A character encoding can be specified by including a `charset` parameter. For example, 'text/plain;charset=utf-8'. */
0 commit comments