<?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 Events Python API not working in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/events-python-api-not-working/m-p/1607009#M6606</link>
    <description>&lt;P&gt;I am following the example exactly from the sample and am getting the error "AttributeError: 'EventManager' object has no attribute 'get'". The example is on this page&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.apps.hub.html#event" target="_blank"&gt;https://developers.arcgis.com/python/latest/api-reference/arcgis.apps.hub.html#event&lt;/A&gt;&amp;nbsp;and I am doing. I tried it in a Notebook in ArcGIS Online and it worked but I can't get it to work outside the notebook. Am I missing a step or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

gis = GIS()
myHub = gis.hub
myEvents = myHub.events.get(41)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2025 17:38:26 GMT</pubDate>
    <dc:creator>LondonWalker</dc:creator>
    <dc:date>2025-04-17T17:38:26Z</dc:date>
    <item>
      <title>Events Python API not working</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/events-python-api-not-working/m-p/1607009#M6606</link>
      <description>&lt;P&gt;I am following the example exactly from the sample and am getting the error "AttributeError: 'EventManager' object has no attribute 'get'". The example is on this page&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.apps.hub.html#event" target="_blank"&gt;https://developers.arcgis.com/python/latest/api-reference/arcgis.apps.hub.html#event&lt;/A&gt;&amp;nbsp;and I am doing. I tried it in a Notebook in ArcGIS Online and it worked but I can't get it to work outside the notebook. Am I missing a step or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

gis = GIS()
myHub = gis.hub
myEvents = myHub.events.get(41)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 17:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/events-python-api-not-working/m-p/1607009#M6606</guid>
      <dc:creator>LondonWalker</dc:creator>
      <dc:date>2025-04-17T17:38:26Z</dc:date>
    </item>
  </channel>
</rss>

