divinorum-webb / tableau-api-lib

An API library that allows developers to call on the methods listed in Tableau's REST API documentation.
MIT License
96 stars 34 forks source link

Cannot connect to default site on tableau server #48

Closed adeturckheim closed 2 years ago

adeturckheim commented 3 years ago

Hi there, For this config, where I'm using only the defaults site, then the config below works with the tableauserverclient connection protocol but not with the one of your package.

TABLEAU_USER = 'my_user@email.com'
SITE_ID = ''
SITE_NAME = ''
SERVER_URL = 'my_tableau_serv_url'
TABLEAU_PASSWORD = 'my_pass'

Any idea of what the site_id and site_name should be filled with? Thanks!

divinorum-webb commented 3 years ago

FIrst let's confirm you are using the format for the config that this library expects? It looks something like this for the default site:

config = {
    "default": {
        "server": "devyx.vizstack.io",
        "api_version": "3.11",
        "username": "my_username",
        "password": "my_password",
        "site_name": "",
        "site_url": "",
    }
}

Then you would have something like conn = TableauServerClient(config, env="default") to establish your connection.

divinorum-webb commented 3 years ago

Hey @adeturckheim, following up on this: were you able to successfully connect using the pattern above?

divinorum-webb commented 2 years ago

Closing due to inactivity.