<?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: arcpy &amp; web tier auth in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501632#M39392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;python 2.7  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import requests &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import urllib &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import urllib2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should be able to hit the REST endpoint and return the JSON data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also on the list is to return info on the services but for now i'm just&lt;/P&gt;&lt;P&gt;trying to connect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internally when I hit the server with a browser, it passes my single&lt;/P&gt;&lt;P&gt;sign on creds and returns the JSON but not with python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2020 20:19:52 GMT</pubDate>
    <dc:creator>BillChappell</dc:creator>
    <dc:date>2020-05-29T20:19:52Z</dc:date>
    <item>
      <title>arcpy &amp; web tier auth</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501630#M39390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I started a new job and one of the tasks given to me was to write some python to work with their ArcServer REST services. I first thought it was token protected but I found out that they federated it with portal and it's all web tier authenticated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to hit the url with requests but keep getting a need token response but even if i get a token it screams at the SSL true parameter.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 18:47:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501630#M39390</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2020-05-29T18:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy &amp; web tier auth</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501631#M39391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What Python packages and functions are you using to "hit the url with requests'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 18:56:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501631#M39391</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-29T18:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy &amp; web tier auth</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501632#M39392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;python 2.7  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import requests &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import urllib &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import urllib2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import json&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should be able to hit the REST endpoint and return the JSON data.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also on the list is to return info on the services but for now i'm just&lt;/P&gt;&lt;P&gt;trying to connect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internally when I hit the server with a browser, it passes my single&lt;/P&gt;&lt;P&gt;sign on creds and returns the JSON but not with python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 20:19:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501632#M39392</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2020-05-29T20:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy &amp; web tier auth</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501633#M39393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Esri has done all of the heavy lifting of making ArcGIS REST API calls from Python by creating &lt;A class="link-titled" href="https://developers.arcgis.com/python/" title="https://developers.arcgis.com/python/"&gt;ArcGIS API for Python | ArcGIS for Developers&lt;/A&gt;.&amp;nbsp; I encourage you to use that API instead of trying to roll your own ArcGIS REST API calls from Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 20:52:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501633#M39393</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-05-29T20:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy &amp; web tier auth</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501634#M39394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I’ll look into that on Monday. Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent from my iPhone&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 21:51:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-web-tier-auth/m-p/501634#M39394</guid>
      <dc:creator>BillChappell</dc:creator>
      <dc:date>2020-05-29T21:51:40Z</dc:date>
    </item>
  </channel>
</rss>

