Hello,
I'd like to use ArcGIS Online analysis services in my web app application.
When I try accessing the service: http://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer?f=pjson&token=
I get this error:
{ "error" : { "code" : 401, "message" : "You do not have permissions to use this resource.", "details" : [ ] } } When I check the privileges of my ArcGIS Online app using: https://.maps.arcgis.com/sharing/rest/portals/self?f=pjson&token=
I don't see analysis privilege in appInfo section:
"appInfo": { "appId": "-------", "itemId": "----------", "appOwner": "----", "orgId": "------", "appTitle": "myApp", "privileges": [ "premium:user:demographics", "premium:user:elevation", "premium:user:geocode", "premium:user:geoenrichment", "premium:user:networkanalysis" ] } How can I add analysis privileges to my app?