Skip to content

Instantly share code, notes, and snippets.

@BorisKozo
BorisKozo / app.js
Created April 2, 2017 09:06
Getting Tableau data from Node.js
//We use this code to retrieve data directly from Tableau server 10.1 from our Node.js server
//This is just a simplified example, not the actual code :)
// You need to fill in all the things in < >
const tableauServer = 'https://<IP OF YOUR SERVER>/trusted';
const username = '<username of a valid user to view the data>';
const reportPath = '/views/<WORKBOOK>/<view>';
const request = require('request-promise-native');
//This is optional, you can add filter parameters directly into the URL
//Check if you need to URI encode the parameter value