AnsweredAssumed Answered

How to make ESRI Rest call from javascript

Question asked by roshni.mridha on Feb 22, 2017
Latest reply on Feb 23, 2017 by roshni.mridha

How do I call the REST API https://www.arcgis.com/sharing/generateToken?username=<>&password=<>&referer=https://geoenrich.arcgis.com&f=json from a javascript method? I tried using jquery ajax request and found it working sometime and sometime the request is always pending.

 

And for the the following url, I do not find any specific query that I need to use? In Arc GIS 3.19 version I saw  esri.tasks.locationproviders.StandardGeographyQueryLocationProvider but in 4 it is not there. If I make normal ajax call using jquery it does not work at all.

Please help me to resolve the problem.

Outcomes