<?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: get sharing url with ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-sharing-url-with-arcgis-api-for-python/m-p/837490#M3374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly, what you're looking for might be the &lt;STRONG&gt;.url&lt;/STRONG&gt; property: &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;item.url&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;If it's not that and instead you're wanting to get the URL for the item which includes the Item ID, I think you'll need to get the item id from the item and then append that to a url string. So something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;url = "yoursharingurl" + item.url&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2019 18:04:42 GMT</pubDate>
    <dc:creator>EarlMedina</dc:creator>
    <dc:date>2019-02-27T18:04:42Z</dc:date>
    <item>
      <title>get sharing url with ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-sharing-url-with-arcgis-api-for-python/m-p/837489#M3373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am looking for a way to get a list of my items (images) with the corresponding sharing URL.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know how to get a list of my items but I don't find (if there is) the right property of the item to get that URL. (I am looking for the one that you find at the lower right of the item's details page.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for hints!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:43:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-sharing-url-with-arcgis-api-for-python/m-p/837489#M3373</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2019-02-27T16:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: get sharing url with ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-sharing-url-with-arcgis-api-for-python/m-p/837490#M3374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand you correctly, what you're looking for might be the &lt;STRONG&gt;.url&lt;/STRONG&gt; property: &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;item.url&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;If it's not that and instead you're wanting to get the URL for the item which includes the Item ID, I think you'll need to get the item id from the item and then append that to a url string. So something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;url = "yoursharingurl" + item.url&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 18:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-sharing-url-with-arcgis-api-for-python/m-p/837490#M3374</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2019-02-27T18:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: get sharing url with ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-sharing-url-with-arcgis-api-for-python/m-p/837491#M3375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried item.url but I get "none" as response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ah, yes "yoursharingurl" makes sense pluse item id&amp;nbsp;+ /data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was easier than I thought:&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;folderitems &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; me&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;items&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; folderitems&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
   &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;title&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;" url: &amp;lt;yoururl&amp;gt;sharing/rest/content/items/"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;id&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"/data"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:10:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-sharing-url-with-arcgis-api-for-python/m-p/837491#M3375</guid>
      <dc:creator>Nicole_Ueberschär</dc:creator>
      <dc:date>2021-12-12T10:10:59Z</dc:date>
    </item>
  </channel>
</rss>

