In [4]:
import arcrest

In [7]:
username = ""
password = ""
sh = arcrest.AGOLTokenSecurityHandler(username=username, password=password)
admin = arcrest.manageorg.Administration(securityHandler=sh)
content = admin.content

In [19]:
# Get the logged in user
currentUser= content.users.user()

In [20]:
# Iterate through all content in each folder
for folder in currentUser.folders:
    currentUser.currentFolder =folder['title']
    print ('--------------------------------------------')
    print ("In folder: %s" % folder['title'])
    for item in currentUser.items:
        print(" - %s" % item.title)


--------------------------------------------
In folder: root
 - guam_replication
 - fgsjklklj
 - Zelda Slide Notes
 - A very large fgdb
 - oauth4juypter
 - fdpopo
 - test test
 - guam_replication
 - testasdfasdfass
 - mapsasd
 - zelda_map
 - ZeldaMap
 - Scripting REST

 - rtwserkkk
 - ZeldaMap
--------------------------------------------
In folder: Pdfs
 - guam
 - guam
--------------------------------------------
In folder: randomFolder
 - guamds

In [ ]: