Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const readline = require('readline');
- const Json2csvParser = require('json2csv').Parser;
- const fs = require('fs')
- const v3 =require('watson-developer-cloud/personality-insights/v3');
- const auth = new v3({
- username: "XXX",
- password: "XXX",
- version_date: "XXX"
- });
- const read = readline.createInterface({
- input: process.stdin,
- output: process.stdout
- });
- read.question('Type something...', (text) => {
- let params = {
- content: text,
- content_type: 'text/plain',
- accept: 'text/csv',
- consumption_preferences: true
- };
Add Comment
Please, Sign In to add comment