Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have used QlikEngine JSON API and exploring how to achieve similar results with the .NET SDK. I have a few questions based on the code snippet below:
Uri uri = new Uri("wss://my_remote_host/jwt/app?transient=");
//virtual proxy
AppIdentifier appId = new AppIdentifier();
appId.AppId = "<SOME APPID>";
appId.AppName = "<SOME APP NAME>";
var senseLocation = Location.FromUri(uri);
senseLocation.AsJwtViaProxy(Guid.NewGuid().ToString(), false);
//hope I can pass a GUID for key
var bearerToken = GetToken();
//getting a bearer token to pass in the header
senseLocation.CustomUserHeaders.Add("Authorization", "bearer " + bearerToken); //passing authorization header
var senseSession = Session.WithApp(appId, SessionType.Default);
QlikConnection conn = new QlikConnection(senseLocation, senseSession);
IEnumerable<string> argNames = new List<string>(); //WHAT ARGS?
string[] arguments = null; //WHAT PARAMS?
var response = await conn.SendAsync(1, "GetDocList", argNames, arguments);
using (IHub hub = senseLocation.Hub())
//SocketException: No such host is known
{
var apps = hub.GetAppList();
foreach (var app in apps)
{
Console.WriteLine(app.AppId + ": " + app.AppName);
}
}
Thanks a ton in advance.
Qlik Sense .NET SDK v15.6.1 was released 10 days ago.
https://www.nuget.org/packages/QlikSense.NetSDK/15.6.1
but, Release Notes(ChangeLog) page has not been updated yet.
https://help.qlik.com/en-US/sense-developer/November2021/Subsystems/NetSDKAPIref/Content/ReleaseNote...
Please update online help site asap.