是否可以从 VSTS 外部访问 VSTS 数据存储?

Is it possible to access the VSTS data storage from outside of VSTS?

我使用下面的代码访问我的 VSTS 扩展中的数据存储。

// Get data service
VSS.getService(VSS.ServiceIds.ExtensionData).then(function(dataService) {
    // Get all document under the collection
    dataService.getDocuments("MyCollection").then(function(docs) {
        console.log("There are " + docs.length + " in the collection.");
    });
});

是否可以在不使用 VSTS 的一般 Web 应用程序中使用它? 我只想访问存储在不同网络应用程序中的数据。

调用此 URL 应该有效:

https://{yourvstsaccount}.extmgmt.visualstudio.com/_apis/ExtensionManagement/InstalledExtensions/{extensionpublisherName}/{extensionname}/Data/Scopes/{scope}/Collections/{collectionName}/Documents/{documentName}

例如: