Tableau Server Client (TSC)中PersonalAccessTokenAuth的用法。
用法
PersonalAccessTokenAuth(token_name, personal_access_token, site_id='')
PersonalAccessTokenAuth 類的用途和使用方式與 TableauAuth 相同,但使用的是個人訪問令牌](https://help.tableau.com/current/server/en-us/security_personal_access_tokens .htm) 而不是用戶名和密碼。
屬性
| 名字 | 說明 |
|---|---|
token_name |
個人訪問令牌名稱。 |
personal_access_token |
個人訪問令牌值。 |
site_id |
這對應於contentUrlTableau REST API 中的屬性。這site_id是 URL 後麵的部分/site/在網址中。例如,“MarketingTeam” 是site_id在以下網址中MyServer/#/地點/MarketingTeam/項目。若要指定 Tableau Server 上的默認站點,您可以使用空字符串''(單引號,沒有空格)。對於 Tableau Online,您必須為site_id. |
源文件:models/personal_access_token_auth.py
示例
import tableauserverclient as TSC
tableau_auth = TSC.PersonalAccessTokenAuth('TOKEN-NAME', 'TOKEN-VALUE', site_id='CONTENTURL')
server = TSC.Server('https://SERVER_URL', use_server_version=True)
server.auth.sign_in(tableau_auth)
相關用法
- Python Sympy Permutation.list()用法及代碼示例
- Python Sympy Permutation.rank_nonlex()用法及代碼示例
- Python Sympy Permutation.next_lex()用法及代碼示例
- Python Sympy Permutation.is_odd()用法及代碼示例
- Python Sympy Permutation.support()用法及代碼示例
- Python Sympy Permutation.runs()用法及代碼示例
- Python Sympy Permutation.signature()用法及代碼示例
- Python Sympy Permutation.max()用法及代碼示例
- Python Sympy Permutation.mul_inv()用法及代碼示例
- Python Sympy Permutation.unrank_nonlex()用法及代碼示例
- Python Sympy Permutation.is_Empty()用法及代碼示例
- Python Sympy Permutation.is_Identity()用法及代碼示例
- Python Sympy Permutation.random()用法及代碼示例
- Python Sympy Permutation.rmul_with_af()用法及代碼示例
- Python Sympy Permutation.unrank_lex()用法及代碼示例
- Python Sympy Permutation.transpositions()用法及代碼示例
- Python Sympy Permutation.rmul()用法及代碼示例
- Python Sympy Permutation.next_trotterjohnson()用法及代碼示例
- Python Sympy Permutation.is_even()用法及代碼示例
- Python Sympy Permutation.order()用法及代碼示例
- Python Sympy Permutation.length()用法及代碼示例
- Python Sympy Permutation.unrank_trotterjohnson()用法及代碼示例
- Python Sympy Permutation.parity()用法及代碼示例
- Python Sympy Permutation.rank()用法及代碼示例
- Python Sympy Permutation.inversions()用法及代碼示例
注:本文由純淨天空篩選整理自tableau.github.io大神的英文原創作品 PersonalAccessTokenAuth class。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
