Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Announcements
BARC’s The BI Survey 19 makes it official. BI users love Qlik. GET REPORT
Partner
Partner

Re: Using a Session Cookie with Repository API

amien‌,

Hi,

Could you please throw some more light on your suggested approach please?

Regards!

elva_lester
New Contributor III

Re: Using a Session Cookie with Repository API

I could not use the SDK because the does not expose all of the properties we needed.  See .NET SDK app properties.

elva_lester
New Contributor III

Re: Using a Session Cookie with Repository API

Sorry, I do not have any experience with SMSESSION.

Partner
Partner

Re: Using a Session Cookie with Repository API

elva.lester‌,

Hi Elva,

U had mentioned you were able to extract the SMSESSION. Could you please help me on how did you do this in QlikView?  You used any macro codes for this?

Also after fetching the SMSESSION, what is the approach to use it as a Header in calling a Web Service?

Regards!

elva_lester
New Contributor III

Re: Using a Session Cookie with Repository API

Sorry, Dicky.

I did not extract SMSESSION.  I did extract all of the session cookies for Qlik Sense in my MVC .NET code as documented above.  I have never used SMSESSION.

Elva

Partner
Partner

Re: Using a Session Cookie with Repository API

elva.lester‌,

Not a problem Elva. Thanks for suggesting,

Do you have any other suggestions just to kick off my requirement in QlikView?

if not SMSESSION, any help on how to pass the X-API-KEY as a header to call the URL (HTTP Request)

Regards!

Highlighted
elva_lester
New Contributor III

Re: Using a Session Cookie with Repository API

The one thing I would try would be something like:


request.Headers.Add("X-Qlik-Xrfkey", Xrfkey);


where you substitute the literal X-API-KEY for the first parm (enclosed in quotes) and the value as the second parm.


Good luck!

Partner
Partner

Re: Using a Session Cookie with Repository API

Hi elva.lester‌,

a bit novice here.


Could you please help a more on how to use the script if I have the URL to pass the header into? Something like, once called from a button click, where can I validate the results too.


I have also created a separate thread for this, if you want to help out there -


Generate a user specific SMSESSION cookie calling a WebService

Regards!