I am trying to connect to ArcGIS Online and retrieve information on an item using an item ID. My code is as follows:
import arcgis
from arcgis.gis import GIS
gis = GIS(url='https://unc.maps.arcgis.com', username='my_username', password='mypassword')
itemid = '9d4c5e75fa5b4bcabbb6161bafe10f57'
item = gis.content.get(itemid)
The code runs with out error, but it only returns the title:
print(item)
<Item title:"Vision_Zero_Safety" type:Shapefile owner:my_username'>
It I attempt to get other information such as:
item.resources.list()
it returns an empty list:
[]
Could this be due to permission issues? I've tried to retrieve information on other items I have but it always just returns the title. I've doubled checked the item id's and they are correct.