AnsweredAssumed Answered

how to get token to access a map service or feature service?

Question asked by BYan-esristaff Employee on Jun 24, 2016
Latest reply on Sep 4, 2020 by

I would like to access mao services for example this one: , if I type the url in browser, it redirects me to the arcgis online login, then I can access the map server. But if I want to access the map server using python code with the REST API, how do I get the token?


I also noticed that there are many ways to get the token, like using 'Oauth2.0 token' or 'generateToken'. I just don't know what I should use and what exactly is the url I need to use to get the token in this case.