<?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 ArcGIS Portal API - Accessing items from Python Script in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338146#M16855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to get a list of my AGOL for organization items from a python script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Is there a way to connect to my portal with a organizational account from Python script ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- How to proceed to get a token with the generateToken Rest operation ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any response would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gaëtan LAVENU&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri France&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 15:35:24 GMT</pubDate>
    <dc:creator>GaëtanLAVENU</dc:creator>
    <dc:date>2012-07-18T15:35:24Z</dc:date>
    <item>
      <title>ArcGIS Portal API - Accessing items from Python Script</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338146#M16855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to get a list of my AGOL for organization items from a python script. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Is there a way to connect to my portal with a organizational account from Python script ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- How to proceed to get a token with the generateToken Rest operation ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any response would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gaëtan LAVENU&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri France&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 15:35:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338146#M16855</guid>
      <dc:creator>GaëtanLAVENU</dc:creator>
      <dc:date>2012-07-18T15:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal API - Accessing items from Python Script</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338147#M16856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll want to look at the ArcGIS Portal API. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisonline/help/#/About_the_ArcGIS_Portal_API/010q000000mv000000/"&gt;http://help.arcgis.com/en/arcgisonline/help/#/About_the_ArcGIS_Portal_API/010q000000mv000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 20:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338147#M16856</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2012-07-18T20:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal API - Accessing items from Python Script</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338148#M16857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I should probably be more precise in my question. I know how to do this with JavaScript API but I try to do it with Python. My issue is about specifying the "referer" parameter in the GenerateToken request. What kind of value should I put in the case of a Python script ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Gaëtan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 21:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338148#M16857</guid>
      <dc:creator>GaëtanLAVENU</dc:creator>
      <dc:date>2012-07-18T21:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Portal API - Accessing items from Python Script</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338149#M16858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The answer from one of our devs here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The referer passed into the generateToken call must be contained within the referer header passed in with each call. So if generate token is called with referer=acme.com all calls using it must have a HTTP Referer header that contains that string, for instance �??&lt;A href="http://maps.acme.com/mypage.html�??"&gt;http://maps.acme.com/mypage.html�??&lt;/A&gt;. Browsers automatically set this to whatever page the call is coming from and this cannot be overridden.&lt;BR /&gt;&lt;BR /&gt;If the token is requested and used from Python then you can set whatever you want, and just make sure that the calls made to the API contain the same Referer string as was used to get the token. It could be a url, a session id, or whatever.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2012 15:06:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/arcgis-portal-api-accessing-items-from-python/m-p/338149#M16858</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2012-07-20T15:06:41Z</dc:date>
    </item>
  </channel>
</rss>

