<?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 QS Repository Service API connect via JQuery Ajax in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/QS-Repository-Service-API-connect-via-JQuery-Ajax/m-p/1174007#M5785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been working a webpage where I can check if an app is available on my Qs Server. To do that, I am trying to use the &lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;Repository Service API&lt;/STRONG&gt;. At first I tried to use connecting using &lt;A href="http://https//help.qlik.com/en-US/sense-developer/3.0/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Example-Connect-Postman.htm"&gt;Postman&lt;/A&gt; and it is working well (Response code 200). But when I generate a &lt;STRONG&gt;JavaScript Jquery AJAX &lt;/STRONG&gt;from the &lt;A href="https://help.qlik.com/en-US/sense-developer/3.0/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Example-Connect-Postman.htm"&gt;Postman&lt;/A&gt; and put it in a HTML file in my Apache Server, I am having an error (see below screenshot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ajax error.PNG" class="jive-image image-1" src="/legacyfs/online/134321_ajax error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Jquery Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var form = new FormData();&lt;/P&gt;&lt;P&gt;form.append("UserDirectory", "AD_Directory");&lt;/P&gt;&lt;P&gt;form.append("UserId", "marmin");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var settings = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "async": true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "crossDomain": true,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikserver.com/qrs/app/full?Xrfkey=ABCDEFG123456789" rel="nofollow" target="_blank"&gt;http://qlikserver.com/qrs/app/full?Xrfkey=ABCDEFG123456789&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "method": "GET",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "headers": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x-qlik-xrfkey": "ABCDEFG123456789",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "cache-control": "no-cache",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "postman-token": "7ef6f2dc-adc2-cdca-d599-51d6947c77d6"&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; "processData": false,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "contentType": false,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "mimeType": "multipart/form-data",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "data": form&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$.ajax(settings).done(function (response) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.log(response);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help me solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 12:10:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-11T12:10:14Z</dc:date>
    <item>
      <title>QS Repository Service API connect via JQuery Ajax</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/QS-Repository-Service-API-connect-via-JQuery-Ajax/m-p/1174007#M5785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been working a webpage where I can check if an app is available on my Qs Server. To do that, I am trying to use the &lt;STRONG style=": ; color: #575757; text-decoration: underline;"&gt;Repository Service API&lt;/STRONG&gt;. At first I tried to use connecting using &lt;A href="http://https//help.qlik.com/en-US/sense-developer/3.0/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Example-Connect-Postman.htm"&gt;Postman&lt;/A&gt; and it is working well (Response code 200). But when I generate a &lt;STRONG&gt;JavaScript Jquery AJAX &lt;/STRONG&gt;from the &lt;A href="https://help.qlik.com/en-US/sense-developer/3.0/Subsystems/RepositoryServiceAPI/Content/RepositoryServiceAPI/RepositoryServiceAPI-Example-Connect-Postman.htm"&gt;Postman&lt;/A&gt; and put it in a HTML file in my Apache Server, I am having an error (see below screenshot)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="ajax error.PNG" class="jive-image image-1" src="/legacyfs/online/134321_ajax error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the Jquery Script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var form = new FormData();&lt;/P&gt;&lt;P&gt;form.append("UserDirectory", "AD_Directory");&lt;/P&gt;&lt;P&gt;form.append("UserId", "marmin");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var settings = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; "async": true,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "crossDomain": true,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; "url": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://qlikserver.com/qrs/app/full?Xrfkey=ABCDEFG123456789" rel="nofollow" target="_blank"&gt;http://qlikserver.com/qrs/app/full?Xrfkey=ABCDEFG123456789&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; "method": "GET",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "headers": {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "x-qlik-xrfkey": "ABCDEFG123456789",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "cache-control": "no-cache",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "postman-token": "7ef6f2dc-adc2-cdca-d599-51d6947c77d6"&lt;/P&gt;&lt;P&gt;&amp;nbsp; },&lt;/P&gt;&lt;P&gt;&amp;nbsp; "processData": false,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "contentType": false,&lt;/P&gt;&lt;P&gt;&amp;nbsp; "mimeType": "multipart/form-data",&lt;/P&gt;&lt;P&gt;&amp;nbsp; "data": form&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$.ajax(settings).done(function (response) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; console.log(response);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope someone can help me solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 12:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/QS-Repository-Service-API-connect-via-JQuery-Ajax/m-p/1174007#M5785</guid>
      <dc:creator />
      <dc:date>2016-08-11T12:10:14Z</dc:date>
    </item>
  </channel>
</rss>

