Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Showing results for 
Search instead for 
Did you mean: 
Creator II
Creator II

API Request

Hi All,

I have come-up with below script, however it is keep loading but nit giving me any results.

Can you please let me know if anything is missing in my script.


function GetXrfKey() {

  $alphabet = $Null; For ($a=97;$a -le 122;$a++) { $alphabet += ,[char][byte]$a }

  For ($loop=1; $loop -le 16; $loop++) {

    $key += ($alphabet | Get-Random)


  return $key


$xrfKey = GetXrfKey

$cert=Get-ChildItem -Path "cert:\CurrentUser\My" | where {$_.Subject -like "*QlikClient*"}

$url="" + $xrfKey



Invoke-RestMethod -Method "get" -Uri $url -CertificateThumbprint $cert.Thumbprint -Headers $hrds

0 Replies