I try to connect to a Qlik sense server and get an instance of an application to modify its content with the .Net SDK. I tried a lot of things, but I cannot achieve my work : the sdk documentation is very poor.
Please, could someone give me a piece of code which explains clearly how to connect to a qlik server and get an application, setting the credentials correctly ?
Attaching to a Qlik Sense engine through the .Net SDK is a two step process where you first have to create a Location instance, and then configure the security settings of that location. The most common case for Qlik Sense server connections is to use NTLM, and such configurations are performed by running the Location member method AsNtlmUserViaProxy. If you for instance want to print the number of apps at a specific location, you could do like this:
var location = Location.FromUri(new Uri("<my server uri>"));
Console.WriteLine("Number of apps: " + location.GetAppIdentifiers().Count());
I can recommend the following page if you want more details on how to connect to a Qlik Sense instance:
If you want more information concerning how to extract information from an app once you have connected, then I can recommend the "App traverser" example you can find in our examples section at the following location: