I would like to query my AGOL organization's History API (https://myorg.maps.arcgis.com/sharing/rest/portals/self/history) without using the ArcGIS Python API, just using Python requests library.
My understanding is I would need to generate an admin token, and use that token to query the API. However, I cannot figure out how to generate a token for this workflow.
res=requests.post("https://myorg.maps.arcgis.com/sharing/rest/generateToken",params=params) returns the error:
["POST request should not contain username and password in the query string."]
Can someone please point me to a clear explanation of how to implement this process?