REST API Samples
To help you use the REST API, Tableau provides samples written in Python and in Java. Get the latest samples on Github(Link opens in a new window).
Note: For previous versions of the samples, see the REST API 10.0 documentation.(Link opens in a new window)