Tableau Server Client (TSC)
中auth.sign_in
的用法。
用法
auth.sign_in(auth_req)
讓您登錄到 Tableau Server。
該方法登錄到 Tableau Server 或 Tableau Online 並管理身份驗證令牌。您從您創建的服務器對象調用此方法。有關服務器對象的信息,請參閱 Server 。身份驗證令牌可讓您登錄 240 分鍾,或直到您調用 auth.sign_out
方法。在使用此方法之前,您首先需要通過創建 TableauAuth
的實例來創建登錄請求 (auth_req
) 對象。要調用此方法,請為您的服務器創建一個服務器對象。有關詳細信息,請參閱 Sign in and Out 。
REST API:Sign In
參數
auth_req
:保存站點登錄憑據的 TableauAuth
對象。
示例
import tableauserverclient as TSC
# create an auth object
tableau_auth = TSC.TableauAuth('USERNAME', 'PASSWORD')
# create an instance for your server
server = TSC.Server('https://SERVER_URL')
# call the sign-in method with the auth object
server.auth.sign_in(tableau_auth)
相關用法
- Python Tableau auth.sign_out用法及代碼示例
- Python Tableau auth.switch_site用法及代碼示例
- Python arcgis.gis._impl._profile.ProfileManager.save_as用法及代碼示例
- Python arcgis.raster.functions.ccdc_analysis用法及代碼示例
- Python arcgis.geometry.functions.trim_extend用法及代碼示例
- Python arcgis.raster.analytics.sample用法及代碼示例
- Python arcgis.features.analysis.derive_new_locations用法及代碼示例
- Python arcgis.features.analyze_patterns.calculate_density用法及代碼示例
- Python arcgis.geometry.Geometry.label_point用法及代碼示例
- Python ast.MatchClass用法及代碼示例
- Python arcgis.plan_routes用法及代碼示例
- Python arcgis.mapping.forms.FormInfo用法及代碼示例
- Python arcgis.gis.UserManager.get用法及代碼示例
- Python arcgis.raster.ImageryLayerCacheManager.update_tiles用法及代碼示例
- Python arcgis.geometry.Geometry.true_centroid用法及代碼示例
- Python arcgis.gis.User.generate_direct_access_url用法及代碼示例
- Python arcgis.gis.GroupMigrationManager.create用法及代碼示例
- Python arcgis.geometry.Geometry.hull_rectangle用法及代碼示例
- Python arcgis.features.analysis.summarize_within用法及代碼示例
- Python arcgis.geometry.filters.intersects用法及代碼示例
- Python arcgis.geometry.functions.project用法及代碼示例
- Python abc.ABCMeta用法及代碼示例
- Python arcgis.raster.functions.percentile用法及代碼示例
- Python arcgis.raster.ImageryLayer.save用法及代碼示例
- Python arcgis.geoanalytics.summarize_data.reconstruct_tracks用法及代碼示例
注:本文由純淨天空篩選整理自tableau.github.io大神的英文原創作品 auth.sign_in。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。