
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to use Proxy API in C#
Hello all,
I am currently working on the Qlik .net SDK and need to delete the Proxy session.
So my question is that how do I use the Proxy REST APIs in .net SDK?
Can some one please tell me how to do it or is there a link of step-by-step tutorial.
Thanks guys.
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have this little project that might find useful. It's a light-weight SDK for establishing connections to the REST based Qlik Sense services:
https://github.com/kolsrud/qlik_rest_sdk
The dll is available for download from nuget:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have look at the documentation for Connecting to the QPS API using certificates
(https://help.qlik.com/en-US/sense-developer/June2018/Subsystems/ProxyServiceAPI/Content/ProxyService...)
But I still have no idea where should I start.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have this little project that might find useful. It's a light-weight SDK for establishing connections to the REST based Qlik Sense services:
https://github.com/kolsrud/qlik_rest_sdk
The dll is available for download from nuget:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I ask you one more question about how to delete a Session .
In the Documentation, it has
Path
/qps/{virtual proxy/}session/{id}
Method
DELETE
Description
This deletes the proxy session identified by {id} and performs a teardown of all connections for that session. The Session module is notified. The deleted session is returned as a session struct.
So, for the path /qps/{virtual proxy/}session/{id}
What value should I put for the {virtual Proxy}, I checked the QMC, should I use the description of the central node, or the Perfix, or the Session cookie header name?
Thanks you for your help!


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm not familiar with that endpoint, but I would guess that you are supposed to use the virtual proxy prefix (if there is any).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
var senseServerUrl = "https://100.00.0";
var restClient = new RestClient(senseServerUrl);
var certs = RestClient.LoadCertificateFromStore();
restClient.AsDirectConnection(4243, false, certs);
using (new Qlik.Sense.RestClient.DebugConsole())
{
restClient.Get("/qps/session");
restClient.Delete("/qps/session/18247d");
}
If there is only restClient.Get("/qps/session"); it works fine. But if there are two requests, it will return a error Authentication failed: 503: Service Unavailable
Do you knowhow should I fix it?
Thank you sir.


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Where do you get that session id from? Isn't it simply the case that you are deleting the session you are using for your RestClient so that you get logged out and have to reauthenticate?
