Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure devops 无法通过REST API获取Azure DevOps事件_Azure Devops_Azure Devops Rest Api - Fatal编程技术网

Azure devops 无法通过REST API获取Azure DevOps事件

Azure devops 无法通过REST API获取Azure DevOps事件,azure-devops,azure-devops-rest-api,Azure Devops,Azure Devops Rest Api,我正在尝试通过下面列出的REST API获取Azure DevOps事件: POST https://dev.azure.com/{organization}/_apis/notification/events?api-version=5.0-preview.1 我尝试使用上述API获取事件,但在postman调用中,我得到以下响应: { "$id": "1", "innerException": null, "message": "The feature is dis

我正在尝试通过下面列出的REST API获取Azure DevOps事件:

POST https://dev.azure.com/{organization}/_apis/notification/events?api-version=5.0-preview.1
我尝试使用上述API获取事件,但在postman调用中,我得到以下响应:

{
    "$id": "1",
    "innerException": null,
    "message": "The feature is disabled. Contact your Azure DevOps Server administrator.",
    "typeName": "Microsoft.TeamFoundation.Framework.Server.FeatureDisabledException, Microsoft.TeamFoundation.Framework.Server",
    "typeKey": "FeatureDisabledException",
    "errorCode": 0,
    "eventId": 3000
}

它应该在postman调用后提供事件

您的POST方法用于发布新事件:。我找不到事件的get方法(仅:或)。也许它还没有编码:


您的POST方法用于发布新事件:。我找不到事件的get方法(仅:或)。也许它还没有编码:


您正在调用的API是一个POST操作,它将发布一个事件,但您的问题表明您希望获取事件。我认为你调用了错误的API。请参阅:您正在调用的API是一个POST操作,它将发布一个事件,但您的问题表明您希望获取事件。我认为你调用了错误的API。见: