Guest User

Untitled

a guest
Aug 14th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. const readline = require('readline');
  2. const Json2csvParser = require('json2csv').Parser;
  3. const fs = require('fs')
  4. const v3 =require('watson-developer-cloud/personality-insights/v3');
  5. const auth = new v3({
  6. username: "XXX",
  7. password: "XXX",
  8. version_date: "XXX"
  9. });
  10.  
  11. const read = readline.createInterface({
  12. input: process.stdin,
  13. output: process.stdout
  14. });
  15.  
  16. read.question('Type something...', (text) => {
  17.  
  18. let params = {
  19. content: text,
  20. content_type: 'text/plain',
  21. accept: 'text/csv',
  22. consumption_preferences: true
  23. };
Add Comment
Please, Sign In to add comment