ArcGIS API for JavaScript: PublicServices/poll_for_agol (MapServer)

Built using the ArcGIS API for JavaScript