I am scripting a scheduled job to author and update content in AGOL - Hosted Feature layer. my enterprise AGOL enterprise uses federated office 365 login so I can’t just username and password flow.
So the best option is to create a app in AGOL and get the appid and appsecret and authenticate. (previously i make own my rest calls to get the token and do other stuff )
class url=None, username=None, password=None, key_file=None, cert_file=None, verify_cert=True, set_active=True, client_id=None, profile=None
, I can make my own rest calls and generate the token and pass the token to api. because now api is not usable for any of my automation use cases for enterprise AGOL.