【发布时间】:2019-04-08 21:04:16
【问题描述】:
在用于 Azure DevOps (https://github.com/Microsoft/azure-devops-python-api) 的 Python REST API 中,仅给出了一个解析项目列表的示例:
from vsts.vss_connection import VssConnection
from msrest.authentication import BasicAuthentication
import pprint
# Fill in with your personal access token and org URL
personal_access_token = 'YOURPAT'
organization_url = 'https://dev.azure.com/YOURORG'
# Create a connection to the org
credentials = BasicAuthentication('', personal_access_token)
connection = VssConnection(base_url=organization_url, creds=credentials)
# Get a client (the "core" client provides access to projects, teams, etc)
core_client = connection.get_client('vsts.core.v4_0.core_client.CoreClient')
这个字符串'vsts.core.v4_0.core_client.CoreClient'来自哪里?
更重要的是,对应的操纵“魔线”是什么:
- 工作项
- 测试运行和结果
- 任务
- 构建
- 等等……
【问题讨论】:
标签: python rest azure-devops azure-devops-rest-api