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 Jun 30, 2016 by BYan-esristaff


I would like to access mao services for example this one: http://earthobs1.arcgis.com/arcgis/rest/services/Live_Stream_Gauges/MapServer/ , 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.

Outcomes