<?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: oauth2 api via python in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oauth2-api-via-python/m-p/1173411#M13944</link>
    <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/466792"&gt;@Heer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry to hear you're having issues with the API.&lt;BR /&gt;&lt;BR /&gt;Have you had a chance to look at the v3 Server API macros? These can be found here:&lt;BR /&gt;&lt;A href="https://community.alteryx.com/t5/Engine-Works/Introducing-the-Alteryx-Server-v3-API/ba-p/899228" target="_blank"&gt;https://community.alteryx.com/t5/Engine-Works/Introducing-the-Alteryx-Server-v3-API/ba-p/899228&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Happy to help you look at your issue in more detail if needed, these may just be a nice way to circumnavigate your issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 13:07:10 GMT</pubDate>
    <dc:creator>TheOC</dc:creator>
    <dc:date>2023-08-09T13:07:10Z</dc:date>
    <item>
      <title>oauth2 api via python</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oauth2-api-via-python/m-p/1173178#M13938</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Discussions/Alteryx-API-connect-to-the-new-oauth2-API-with-python/m-p/967247/highlight/false#M11221" target="_blank" rel="noopener"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried the solution from the above link but it doesnt get past&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;response = requests.post(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;self.apiLocation+'/oauth2/token',&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; data = {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'grant_type':'client_credentials',&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'client_id' : self.apiKey,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'client_secret' : self.apiSecret&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;and throws the following error&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;requests.exceptions.ConnectionError: ('Connection aborted.', error(110, 'Connection timed out'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am&amp;nbsp; i missing?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 22:42:33 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oauth2-api-via-python/m-p/1173178#M13938</guid>
      <dc:creator>Heer</dc:creator>
      <dc:date>2023-08-08T22:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: oauth2 api via python</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oauth2-api-via-python/m-p/1173411#M13944</link>
      <description>&lt;P&gt;hey&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/466792"&gt;@Heer&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Sorry to hear you're having issues with the API.&lt;BR /&gt;&lt;BR /&gt;Have you had a chance to look at the v3 Server API macros? These can be found here:&lt;BR /&gt;&lt;A href="https://community.alteryx.com/t5/Engine-Works/Introducing-the-Alteryx-Server-v3-API/ba-p/899228" target="_blank"&gt;https://community.alteryx.com/t5/Engine-Works/Introducing-the-Alteryx-Server-v3-API/ba-p/899228&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Happy to help you look at your issue in more detail if needed, these may just be a nice way to circumnavigate your issue.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;/P&gt;
&lt;P&gt;Owen&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 13:07:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/oauth2-api-via-python/m-p/1173411#M13944</guid>
      <dc:creator>TheOC</dc:creator>
      <dc:date>2023-08-09T13:07:10Z</dc:date>
    </item>
  </channel>
</rss>

