dmorosi

Using REST API for spatial analysis

Discussion created by dmorosi on Jun 18, 2014
Latest reply on Jan 23, 2015 by xander_bakker
Hi all,

I have the following problem. I'm trying to access the ArcGIS Online services as described here:

http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Accessing_services_provided_by_Esri/02r300000268000000/

I succeeded in getting a token and also the test with the routing service (proposed in the same guide) has gone well.
Now, if I try to access to one of the services under the "Spatial analysis" category, simply checking for the input parameters using an url like the following:

http://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer/AggregatePoints?f=pjson&token=<My Token>

I always get the same error:

{
  "error" : {
    "code" : 401,
    "message" : "You do not have permissions to use this resource.",
    "details" : [ ]
  }
}

Am I missing something? Should I do something to enable the use of the spatial analysis services?

Thank you

Outcomes