In [1]:
from arcgis.gis import GIS
gis = GIS("https://ags-enterprise4.aeroterra.com/arcgis/", "PythonApi", "test123456")

In [2]:
me = gis.users.me
me


Out[2]:
Python Api

Bio:
First Name: Python
Last Name: Api
Username: PythonApi
Joined: May 08, 2017

In [3]:
me.access


Out[3]:
'public'

In [4]:
user_groups = me.groups
print("Miembro de " + str(len(user_groups)) + " grupo/s")


Miembro de 4 grupo/s

In [6]:
user_items = me.items()
print("Posee " + str(len(user_items)) + " item/s")


Posee 8 item/s

In [9]:
for item in user_items:
    try:
        print(item.tags)
    except:
        print(item)


['Web AppBuilder']
['TRACK']
['TRACK']
['WebApp']
['Aggregate Points']
['Big Data Analytics', 'AggregatePoints']
['Aggregate Points']
['Big Data Analytics', 'AggregatePoints']

In [14]:
item = gis.content.get('b2c97de923214dfca44ee71420a56e54')
item.tags


Out[14]:
['TRACK', 'UC2017']

In [15]:
item.update(item_properties={'tags':'TRACK,UC2017,DEVELOPERS'})


Out[15]:
True

In [16]:
item.tags


Out[16]:
['TRACK', 'UC2017', 'DEVELOPERS']

In [17]:
item.title


Out[17]:
'TRACK_date'

In [18]:
item.download_metadata(save_folder=r'C:\temp')


Out[18]:
'C:\\temp\\metadata.xml'

In [19]:
item.download_thumbnail(save_folder= r'C:\temp')


Out[19]:
'C:\\temp\\thumbnail.JPEG'

In [ ]: