<?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 Custom connector to API using Python/JavaScript? in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/743104#M20025</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currentely trying to connect to an API using OAuth2, so I figured I try out Power Query SDK and custom data connectors. However, is this possible no matter what programming language the API requires?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to obtain the API token which contains three steps:&amp;nbsp;&lt;/P&gt;&lt;P&gt;. Obtaining the API token contains 3 steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get Challenge (startlogin probably)&lt;UL&gt;&lt;LI&gt;POST &lt;A href="https://fmsauth.scania.com/auth/S2S4DA/ClientId2Challenge" target="_blank" rel="noopener"&gt;https://fmsauth.scania.com/auth/S2S4DA/ClientId2Challenge&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Create Challenge Response (finishlogin?) à and this is where I find it confusing&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;The source code for this step is given in multiple languages, but none of them are json or xml, is it still possible to do everything in Power Query SDK?&lt;/LI&gt;&lt;LI&gt;Here is the code which should create a challe response from Secret key and challenge:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 985px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/178574i7337250629329604/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Get Token (still finishlogin)&lt;UL&gt;&lt;LI&gt;POST &lt;SPAN&gt;&lt;A href="https://fmsauth.scania.com/auth/S2S4DA/Response2Token" target="_blank" rel="noopener"&gt;https://fmsauth.scania.com/auth/S2S4DA/Response2Token&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response in both step 1 and 3 is in application/json format, while step 2 do not give a response in itself. So I am not quite sure what to do with step 2, is one of these programming languages mandatory or just suggested?&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2019 08:43:18 GMT</pubDate>
    <dc:creator>Jonas1</dc:creator>
    <dc:date>2019-07-18T08:43:18Z</dc:date>
    <item>
      <title>Custom connector to API using Python/JavaScript?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/743104#M20025</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am currentely trying to connect to an API using OAuth2, so I figured I try out Power Query SDK and custom data connectors. However, is this possible no matter what programming language the API requires?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to obtain the API token which contains three steps:&amp;nbsp;&lt;/P&gt;&lt;P&gt;. Obtaining the API token contains 3 steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Get Challenge (startlogin probably)&lt;UL&gt;&lt;LI&gt;POST &lt;A href="https://fmsauth.scania.com/auth/S2S4DA/ClientId2Challenge" target="_blank" rel="noopener"&gt;https://fmsauth.scania.com/auth/S2S4DA/ClientId2Challenge&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Create Challenge Response (finishlogin?) à and this is where I find it confusing&lt;/LI&gt;&lt;UL&gt;&lt;LI&gt;The source code for this step is given in multiple languages, but none of them are json or xml, is it still possible to do everything in Power Query SDK?&lt;/LI&gt;&lt;LI&gt;Here is the code which should create a challe response from Secret key and challenge:&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 985px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/178574i7337250629329604/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/OL&gt;&lt;OL&gt;&lt;LI&gt;Get Token (still finishlogin)&lt;UL&gt;&lt;LI&gt;POST &lt;SPAN&gt;&lt;A href="https://fmsauth.scania.com/auth/S2S4DA/Response2Token" target="_blank" rel="noopener"&gt;https://fmsauth.scania.com/auth/S2S4DA/Response2Token&lt;/A&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response in both step 1 and 3 is in application/json format, while step 2 do not give a response in itself. So I am not quite sure what to do with step 2, is one of these programming languages mandatory or just suggested?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 08:43:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/743104#M20025</guid>
      <dc:creator>Jonas1</dc:creator>
      <dc:date>2019-07-18T08:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector to API using Python/JavaScript?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/748892#M20104</link>
      <description>&lt;P&gt;Not sure if this helps, but have you considered getting a ready made connector instead of building one from scratch?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When building a connector from scratch, besides all the hard work getting it to work in the first place, there can a significant maintenance effort every time the API changes...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why don't you check an out-of-the-box solution like &amp;nbsp;&lt;A href="https://www.connecting-software.com/connect-bridge/" target="_blank"&gt;https://www.connecting-software.com/connect-bridge/&lt;/A&gt;&amp;nbsp;maybe they have the connector you need? And then you can link to it from Python, no problem.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 10:03:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/748892#M20104</guid>
      <dc:creator>ananeto</dc:creator>
      <dc:date>2019-07-25T10:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector to API using Python/JavaScript?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/757201#M20211</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/156426"&gt;@ananeto&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I resolved this by setting it up myself in Python. They have designated libraries to connect to APIs and there are lots of forums/blogs that can solve the problems that arrives, so highly recommend it! I have already connected to several APIs and I thinks this is a valuable skill to have.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Aug 2019 20:34:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/757201#M20211</guid>
      <dc:creator>Jonas1</dc:creator>
      <dc:date>2019-08-04T20:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Custom connector to API using Python/JavaScript?</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/2474589#M35694</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/63026"&gt;@Jonas1&lt;/a&gt;&amp;nbsp;, did you manage to get the connector to work?&lt;/P&gt;&lt;P&gt;I'm also working with the scania API and im stuck, can you give any hints on how to proceed?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Wes&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 10:05:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Custom-connector-to-API-using-Python-JavaScript/m-p/2474589#M35694</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-04-25T10:05:00Z</dc:date>
    </item>
  </channel>
</rss>

