<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can't get the qlik rest api to post in script in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48512#M727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what environment you are working in, but I believe you have to get the cookie from the GET call and include it in your POST request. This is an example in C#:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L80" title="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L80"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L80&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see it collects the cookie if it has not already done so. And the cookie collection simply implies running a dummy GET operation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L124" title="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L124"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L124&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real work is done in this method that handles the setup of the requests (that's where the cookie container is configured):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L150" title="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L150"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L150&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2018 07:20:46 GMT</pubDate>
    <dc:creator>Øystein_Kolsrud</dc:creator>
    <dc:date>2018-03-20T07:20:46Z</dc:date>
    <item>
      <title>Can't get the qlik rest api to post in script</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48511#M726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to do a POST call from the sense script editor.&lt;/P&gt;&lt;P&gt;I can get a GET call to work, but I can't figure out how to do a POST as the rest connector gives the error that you have to do a GET call first. When I try to do this in script with the "With connection" I can not get it to work. Not even with the original GET URL, it is not accepted. And I can't find a way to change the Method to POST. I have tried HTTPMethode and methode.&lt;/P&gt;&lt;P&gt;So I am stuck and can't find any documentation that I can use.&lt;/P&gt;&lt;P&gt;Can anyone give me an example or documentation with an example to fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to Create Custom properties on the same sense server and with a Root admin account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2018 12:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48511#M726</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2018-03-19T12:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the qlik rest api to post in script</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48512#M727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what environment you are working in, but I believe you have to get the cookie from the GET call and include it in your POST request. This is an example in C#:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L80" title="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L80"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L80&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see it collects the cookie if it has not already done so. And the cookie collection simply implies running a dummy GET operation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L124" title="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L124"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L124&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The real work is done in this method that handles the setup of the requests (that's where the cookie container is configured):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L150" title="https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L150"&gt;https://github.com/kolsrud/qlik_rest_sdk/blob/master/Qlik.Sense.RestClient/RestClient.cs#L150&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:20:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48512#M727</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-03-20T07:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the qlik rest api to post in script</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48513#M728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working in Qlik script editor.&lt;/P&gt;&lt;P&gt;The documentation doesn't specify anything about a cookie as far as I know.&lt;/P&gt;&lt;P&gt;With the NPrinting api I needed to take part of the cookie returned in the header. This cookie is a lot smaller and I am not sure if this would work.&lt;/P&gt;&lt;P&gt;Also how do I get a post call in the script as I can only create GET calls. So I guess I have to change it with the With connection statement, can't figure out how.&lt;/P&gt;&lt;P&gt;Ill try to just put in the whole cookie.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 07:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48513#M728</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2018-03-20T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the qlik rest api to post in script</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48514#M729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, sorry... Should have read your original post better. I'm not familiar with that part of the script framework, so I'm probably not of much help here...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2018 11:57:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48514#M729</guid>
      <dc:creator>Øystein_Kolsrud</dc:creator>
      <dc:date>2018-03-20T11:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get the qlik rest api to post in script</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48515#M730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah ok, thanks anyways. Hopefully someone else can help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Mar 2018 07:21:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Can-t-get-the-qlik-rest-api-to-post-in-script/m-p/48515#M730</guid>
      <dc:creator>bramkn</dc:creator>
      <dc:date>2018-03-21T07:21:53Z</dc:date>
    </item>
  </channel>
</rss>

