AnsweredAssumed Answered

How can I access my ArcGIS online content using the Python API?

Question asked by FloreR2@dcfs.lacounty.gov_lacounty on Sep 17, 2018
Latest reply on Sep 18, 2018 by FloreR2@dcfs.lacounty.gov_lacounty

Hello,

 

I been trying to access my ArcGIS online content using the API. So far I been able to access by Connecting through ArcGIS Pro but I would like to use my actual credentials to access the account. 

 

I looked into the following method:

 

print("ArcGIS Online Org account")    gis = GIS("NyCompanyURL", "MyUserName", "MyPassword")print("Logged in as " + str(gis.properties.user.username))

 

when I use this method, the scripts seems to be running but nothing happens. I am assuming I am using the wrong approach for an ArcGIS enterprise account. Any help is appreciated. 

Outcomes