4. 🤦 Troubleshooting | Common mistakes

Number of APIs: 10

  1. Service with non API support - ✅ Enhanced: Batch geocoding using Access token POST https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses

  2. Problems creating an item - Create an item with app credentials POST https://www.arcgis.com/sharing/rest/content/users/{{username}}/addItem

  3. Create hosted layers with app credentials - Create feature service POST https://www.arcgis.com/sharing/rest/content/users/{{username}}/createService

  4. Scope private data with wrong account - ✅ 1. Add relationship - Item from online acc. POST https://www.arcgis.com/sharing/rest/content/users/{{username}}/addRelationship

  5. Scope private data with wrong account - 🚫 2. Update scope - Item from online acc. POST https://www.arcgis.com/sharing/rest/oauth2/apps/{{client_id}}/update

  6. Access Living Atlas restricted content-Premium content - ✅ ArcGIS Platform w/ pay-as-you-go and OAuth GET https://demographics2.arcgis.com/arcgis/rest/services/GBR_Demographics_and_Boundaries/MapServer?ts=1371669334520&f=json&token={{access_token}}

  7. Service with non API support - 🚫 Standard: Batch geocoding using Access token POST https://geocode-api.arcgis.com/arcgis/rest/services/World/GeocodeServer/geocodeAddresses

  8. Spatial analysis using API keys - ✅ Spatial analysis using OAuth GET https://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer/CalculateDensity/submitJob?f=json&inputLayer=%7B%22url%22%3A%22https%3A%2F%2Fservices1.arcgis.com%2FnCKYwcSONQTkPA4K%2FArcGIS%2Frest%2Fservices%2FGasolineras_Pro%2FFeatureServer%2F0%22%7D&areaUnits=SquareKilometers&classificationType=EqualInterval&numClasses=10&OutputName=%7B%22serviceProperties%22%3A%7B%22name%22%3A%22Densidad%20de%20Nerja%20Food%22%2C%22serviceUrl%22%3A%22http%3A%2F%2Fservices.arcgis.com%2FQ6ZFRRvMTlsTTFuP%2Farcgis%2Frest%2Fservices%2FDensidad%20de%20Nerja%20Food%2FFeatureServer%22%7D%2C%22itemProperties%22%3A%7B%22itemId%22%3A%22b325b865d9b24cbfafff6ce30049f1e4%22%7D%7D&context=%7B%22extent%22%3A%7B%22type%22%3A%22extent%22%2C%22xmin%22%3A-3328453.7107606614%2C%22ymin%22%3A3061018.7587652337%2C%22xmax%22%3A1788546.710760817%2C%22ymax%22%3A5575491.241233723%2C%22spatialReference%22%3A%7B%22wkid%22%3A102100%7D%7D%7D&returnFeatureCollection=false&token={{api_key}}

  9. Geometry service using access token - ✅ Calculate a buffer without API key GET https://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/buffer?geometries=-117%2C34&inSR=4326&outSR=4326&bufferSR=102113&distances=1000&unit=&unionResults=false&f=pjson

  10. Access Living Atlas restricted content-Subscriber content - ✅ Traffic layers using OAuth GET https://traffic.arcgis.com/arcgis/rest/services/World/Traffic/MapServer/export?dpi=96&transparent=true&format=png32&layers=show%3A2%2C3%2C4%2C7%2C10%2C11%2C12%2C15%2C18%2C19%2C20%2C23%2C26%2C27%2C28%2C31%2C46%2C47%2C48%2C43&token={{access_token}}&bbox=-5348233.645227578%2C-1783465.0549807104%2C-5320047.491047457%2C-1772954.963591513&bboxSR=102100&imageSR=102100&size=1475%2C550&f=image