<?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 Import app example in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Import-app-example/m-p/1095344#M4886</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get started working with the Qlik API. I'm connecting using curl (through a groovy script).&lt;/P&gt;&lt;P&gt;So far I was able to run GET requests, but I've been running into issues when try to do an import through the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I got an issue with the content type. The documentation says it should be a string but I got errors saying it expects a application/json and not text/plain&lt;/P&gt;&lt;P&gt;Now I'm having issues parsing the properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some give me an example of importing an app using the API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2016 08:22:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-15T08:22:41Z</dc:date>
    <item>
      <title>Import app example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Import-app-example/m-p/1095344#M4886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to get started working with the Qlik API. I'm connecting using curl (through a groovy script).&lt;/P&gt;&lt;P&gt;So far I was able to run GET requests, but I've been running into issues when try to do an import through the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I got an issue with the content type. The documentation says it should be a string but I got errors saying it expects a application/json and not text/plain&lt;/P&gt;&lt;P&gt;Now I'm having issues parsing the properties.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can some give me an example of importing an app using the API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2016 08:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Import-app-example/m-p/1095344#M4886</guid>
      <dc:creator />
      <dc:date>2016-01-15T08:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Import app example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Import-app-example/m-p/1095345#M4887</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 think curl is not the right tool to do that stuff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;Konrad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jan 2016 13:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Import-app-example/m-p/1095345#M4887</guid>
      <dc:creator>konrad_mattheis</dc:creator>
      <dc:date>2016-01-16T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Import app example</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Import-app-example/m-p/1095346#M4888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, but I figured it out.&lt;/P&gt;&lt;P&gt;Looks like the main issue was that the call needs to get a normal string, but is also expecting "Content-Type: application/json". Took me a lot of trial and error to get it right, but it works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;curl -X POST&lt;/P&gt;&lt;P&gt;--cert "{certificate_location}" &lt;/P&gt;&lt;P&gt;--key "{certificate_key_location}" &lt;/P&gt;&lt;P&gt;-k&lt;/P&gt;&lt;P&gt;{server_url}/qrs/app/import?xrfkey=0123456789abcdef&amp;amp;name=test_import&lt;/P&gt;&lt;P&gt;--header "x-qlik-xrfkey: 0123456789abcdef" &lt;/P&gt;&lt;P&gt;--header "X-Qlik-User: UserDirectory=internal;UserId=sa_repository"&lt;/P&gt;&lt;P&gt;--header "Content-Type: application/json"&lt;/P&gt;&lt;P&gt;-d 'test.qvf'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jan 2016 12:33:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Import-app-example/m-p/1095346#M4888</guid>
      <dc:creator />
      <dc:date>2016-01-17T12:33:06Z</dc:date>
    </item>
  </channel>
</rss>

