Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
pelda
Contributor
Contributor

How to get list of Streams using .NET SDK

Hello everybody, 

Am using .NET SDK and need to retrieve list of streams on particular location.

For listing Apps I do use location.GetAppIdentifiers

 

Is there something similar for Streams?

 

Thank you

Jiri

 

Labels (2)
3 Replies
Ray_Strother
Support
Support

Hello

The links below should help. This is portion of another post in the coimmunity.

That type of app metadata is typically the domain of the Repository, not the Engine. So the way to go is to use the Repository API. You probably want one of these endpoints:

https://help.qlik.com/en-US/sense-developer/April2020/APIs/RepositoryServiceAPI/index.html?page=24

https://help.qlik.com/en-US/sense-developer/April2020/APIs/RepositoryServiceAPI/index.html?page=387

If you're accustomed to the .NET SDK, then you might find this library useful when calling the REST endpoints of the repository:

https://www.nuget.org/packages/QlikSenseRestClient/

It implements a similar location configuration protocol as the SDK. Some examples to get you going can be found here:

https://github.com/kolsrud/qlik_rest_sdk/tree/master/Qlik.Sense.RestClient/Examples

Like this one for doing a basic NTLM connection:

https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/Examples/BasicConnection/...
Øystein_Kolsrud
Employee
Employee

As @Ray_Strother points out, "Stream" is not a concept the engine knows anything about, and the .NET SDK can only be used to interact with the engine. For that type of information you need to call endpoints in the repository. Here's an example on how to get stream information using the library mentioned above for REST access:

var client = new RestClient(url);
client.AsNtlmUserViaProxy(certificateValidation: false);

var streams = client.Get<JArray>("/qrs/stream");
Console.WriteLine(streams);
pelda
Contributor
Contributor
Author

Hi guys, thanks for explanation and examples. 

Above RestClient library works perfecly.. doing exactly what I needed !