猿问

AzureDevOps Python REST API 中的这个神奇客户端字符串是什么?

在用于 Azure DevOps 的 Python REST API ( https://github.com/Microsoft/azure-devops-python-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'从哪里来的?


更重要的是,对应的“魔弦”是什么来操作:


工作项

测试运行和结果

任务

构建

等等...


翻阅古今
浏览 122回答 1
1回答
随时随地看视频慕课网APP

相关分类

Python
我要回答