Insight API
GetProjectsTreeXml.cs
static void GetProjectsTreeXml()
{
var insightApi = new InsightApiClient();
string login = "Administrator";
string password = "password";
Guid sessionId = insightApi.Login(login, password, null, EApplicationType.Admin);
ProjectDescription[] projectDescriptions = insightApi.GetProjectsDescriptions(sessionId, null);
if (projectDescriptions.Length > 0)
{
var project = projectDescriptions[0];
var xml = insightApi.GetProjectsTreeXml(sessionId, project.ProjectId, "http://localhost/Insight/View/", false, null);
Console.WriteLine(xml);
}
}