Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
// Log in
var login = WebRequest.Create("http://localhost:40010/1/login");
login.Headers.Add("x-sti-UserName", Username);
login.Headers.Add("x-sti-Password", Password);
var sessionKey = (string)GetJson(login)["ResultSessionKey"];
// Create a snapshot, then run the template into it
var run = WebRequest.Create("http://localhost:40010/1/reporttemplates/" + reportKey + "/run");
run.Method = "PUT";
run.Headers.Add("x-sti-SessionKey", sessionKey);
run.Headers.Add("x-sti-DestinationItemKey", snapshotKey);
// Export the snapshot to PDF
var export = WebRequest.Create("http://localhost:40010/1/reportsnapshots/" + snapshotKey + "/export");
export.Method = "PUT";
export.Headers.Add("x-sti-SessionKey", sessionKey);
Request(export, "{ 'ExportSet': { 'Ident':'Pdf', 'EmbeddedFonts':false } }");/login → ResultSessionKey — every later request carries it as the x-sti-SessionKey header./reporttemplates/{key}/run — render the template into a snapshot; /reportsnapshots/{key}/export exports it to PDF.