<?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 Create a REST API connection to JAMS Scheduler API (bearer authentication) in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-REST-API-connection-to-JAMS-Scheduler-API-bearer/m-p/1837104#M15587</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping to create a REST API connection to JAMS Scheduler's REST API.&amp;nbsp; The API uses bearer token authentication so I believe I will first need to send a Post Request to get a token and can then use that token in Get requests to pull data into Qlik Sense.&amp;nbsp; &amp;nbsp;They have pretty good documentation on how to do it using Python here&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jamsscheduler.com/doc/JAMSHelp/JAMSRESTAPIwithPython.html" target="_blank"&gt;https://www.jamsscheduler.com/doc/JAMSHelp/JAMSRESTAPIwithPython.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think this is likely possible by utilizing a generic JSON server connection and then updating the WITH CONNECTION string as described in this and several other community posts but I have not been able to get a token back.&amp;nbsp; One difference I noticed between this and other examples I have seen is that this requires username and pw to be sent via payload, is that possible within Qlik REST API?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/td-p/950208" target="_blank"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/td-p/950208&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts are much appreciated!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6112"&gt;@Bjorn_Wedbratt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 23:43:30 GMT</pubDate>
    <dc:creator>mjperreault</dc:creator>
    <dc:date>2024-11-15T23:43:30Z</dc:date>
    <item>
      <title>Create a REST API connection to JAMS Scheduler API (bearer authentication)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-REST-API-connection-to-JAMS-Scheduler-API-bearer/m-p/1837104#M15587</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am hoping to create a REST API connection to JAMS Scheduler's REST API.&amp;nbsp; The API uses bearer token authentication so I believe I will first need to send a Post Request to get a token and can then use that token in Get requests to pull data into Qlik Sense.&amp;nbsp; &amp;nbsp;They have pretty good documentation on how to do it using Python here&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jamsscheduler.com/doc/JAMSHelp/JAMSRESTAPIwithPython.html" target="_blank"&gt;https://www.jamsscheduler.com/doc/JAMSHelp/JAMSRESTAPIwithPython.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think this is likely possible by utilizing a generic JSON server connection and then updating the WITH CONNECTION string as described in this and several other community posts but I have not been able to get a token back.&amp;nbsp; One difference I noticed between this and other examples I have seen is that this requires username and pw to be sent via payload, is that possible within Qlik REST API?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/td-p/950208" target="_blank"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/REST-CONNECTOR-locate-the-Authorization-token/td-p/950208&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts are much appreciated!&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6112"&gt;@Bjorn_Wedbratt&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mark&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:43:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-REST-API-connection-to-JAMS-Scheduler-API-bearer/m-p/1837104#M15587</guid>
      <dc:creator>mjperreault</dc:creator>
      <dc:date>2024-11-15T23:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create a REST API connection to JAMS Scheduler API (bearer authentication)</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-REST-API-connection-to-JAMS-Scheduler-API-bearer/m-p/1837742#M15594</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/27636"&gt;@mjperreault&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Have you tried sending the payload in the body, using WITH CONNECTION (BODY "&amp;lt;your json body&amp;gt;") ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Load-REST-data/Load-data.htm" target="_blank"&gt;https://help.qlik.com/en-US/connectors/Subsystems/REST_connector_help/Content/Connectors_REST/Load-REST-data/Load-data.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something along the following in the script:&lt;/P&gt;&lt;P&gt;let MsgBody='{"username": "#Your JAMS Username", "password": "#Your JAMS Password"}';&lt;BR /&gt;let MsgBody=replace(MsgBody,'"',chr(34) &amp;amp; chr(34));&lt;/P&gt;&lt;P&gt;SQL SELECT ...&lt;/P&gt;&lt;P&gt;FROM JSON (wrap on) "root" PK "__KEY_root"&lt;BR /&gt;WITH CONNECTION (&lt;BR /&gt;HTTPHEADER "content-type" "application/json"&lt;BR /&gt;BODY "$(MsgBody)"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;Then you need the bearer token to be sent in a second GET request as outlined in the documentation you linked to. I think this would be possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Bjorn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Sep 2021 21:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Create-a-REST-API-connection-to-JAMS-Scheduler-API-bearer/m-p/1837742#M15594</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2021-09-20T21:20:21Z</dc:date>
    </item>
  </channel>
</rss>

