SIGN IN
tableau_auth = TSC.TableauAuth(args.username, password, args.site)
server = TSC. Server(args.server, use_server_version=True)
with server.auth.sign_in(tableau_auth):
print("Your server contains the following sites:")
for site in TSC.Pager(server.sites.get):
print(site.name)
i=input("Enter the site name :")
print(i)
for project in TSC.Pager(server.sites.projects.get):
print(project.name)
In the Tableau server client I am able to print the site ID. Based on the site ID, I need to print a project and workbook. In the above code the user gets the list of siteIDs that belong to his role. The user selects the site ID and I have stored an object "i" based on the site name. How can I drill down to a project and workbook?