Tableau Server offers a wide range of functionality through its REST API interface. While this interface allows you to script a variety of different tasks, the coding required to use the REST API can be extensive. Our REST API Libraries for .Net, Java, Python, and PHP significantly reduce the amount of coding required to implement your desired interface.
The .Net REST API Library is packaged into a single .dll file that you can include in your integration project.
using tableauREST9_v1;
// setup the variables
string ts_url = "http://localhost:8000";
string ts_user = "admin";
string ts_pass = "admin";
string ts_site = "";
string user_name = "testuser"; // this is the username for logging into Tableau
// start the tableau controller
tableau_controller tc = new tableau_controller(ts_url, ts_site, ts_user, ts_pass);
// get the users array
DataTable workbook_list = tc.tsGetWorkbooksByUser(user_name);
The Java REST API Library is packaged into a single .jar file that you can include in your integration project.
import tabRest.tabRest;
// setup the variables
String ts_url = "http://localhost:8000";
String ts_user = "admin";
String ts_pass = "admin";
String ts_site = "";
String user_name = "testuser"; // this is the username for logging into Tableau
// start the tableau controller
String[] user_list = new String[20];
tabRest tab1 = new tabRest(ts_url, ts_user, ts_pass, ts_site);
workbook_list = tab1.tsGetWorkbooksByUser(user_name);