Qodex.ai
Qodex.ai
Introduction
0. 🆔 ArcGIS identity
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (SHA256) | ⭐ Recommended
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (plain)
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-🌐 Implicit Grant Flow | ⚠️ Read doc
Get token | ⚠️ Read doc
🪪 OAuth 2.0 | ⭐ Recommended-🧑‍🚀 Qodex (Authorization tab)
Test request | Get user content
🪪 OAuth 2.0 | ⭐ Recommended-🗑️ Revoke OAuth2 token
Remove token
🔑 ArcGIS token | Direct | ❗ Discouraged
Get token | ❗ Discouraged
1. 🔑 API Keys
🔑 2. Create an API key
1. Create API key item type2. Register item as API key
⚙️ 2. Update API key settings-Scope API Key to ready to use service
Scope API Key to ready to use service
⚙️ 2. Update API key settings-Add referrers
Add referrers
⚙️ 2. Update API key settings-Scope API Key to data
1. Add relationship2. Update scope
⚙️ 2. Update API key settings
Get client id
2. 🖥️ App credentials
🖥️ Get access token | OAuth 2.0 client credentials
Get access token
🗑️ Revoke OAuth 2.0 token
Remove token
3. 👤 Authentication | Self
User SelfPortal Self
4. 🤦 Troubleshooting | Common mistakes
Problems creating an item
Create an item with app credentials
Create hosted layers with app credentials
Create feature service
Scope private data with wrong account
✅ 1. Add relationship - Item from online acc.🚫 2. Update scope - Item from online acc.
Service with non API support
🚫 Standard: Batch geocoding using Access token✅ Enhanced: Batch geocoding using Access token
Geometry service using access token
✅ Calculate a buffer without API key
Access Living Atlas restricted content-Premium content
✅ ArcGIS Platform w/ pay-as-you-go and OAuth
Access Living Atlas restricted content-Subscriber content
✅ Traffic layers using OAuth
Spatial analysis using API keys
✅ Spatial analysis using OAuth
Introduction
0. 🆔 ArcGIS identity
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (SHA256) | ⭐ Recommended
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow with PKCE (plain)
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-📄 Authentication Grant Flow
1. URL to get user_code4. Exchange refresh_token
🪪 OAuth 2.0 | ⭐ Recommended-🌐 Implicit Grant Flow | ⚠️ Read doc
Get token | ⚠️ Read doc
🪪 OAuth 2.0 | ⭐ Recommended-🧑‍🚀 Qodex (Authorization tab)
Test request | Get user content
🪪 OAuth 2.0 | ⭐ Recommended-🗑️ Revoke OAuth2 token
Remove token
🔑 ArcGIS token | Direct | ❗ Discouraged
Get token | ❗ Discouraged
1. 🔑 API Keys
🔑 2. Create an API key
1. Create API key item type2. Register item as API key
⚙️ 2. Update API key settings-Scope API Key to ready to use service
Scope API Key to ready to use service
⚙️ 2. Update API key settings-Add referrers
Add referrers
⚙️ 2. Update API key settings-Scope API Key to data
1. Add relationship2. Update scope
⚙️ 2. Update API key settings
Get client id
2. 🖥️ App credentials
🖥️ Get access token | OAuth 2.0 client credentials
Get access token
🗑️ Revoke OAuth 2.0 token
Remove token
3. 👤 Authentication | Self
User SelfPortal Self
4. 🤦 Troubleshooting | Common mistakes
Problems creating an item
Create an item with app credentials
Create hosted layers with app credentials
Create feature service
Scope private data with wrong account
✅ 1. Add relationship - Item from online acc.🚫 2. Update scope - Item from online acc.
Service with non API support
🚫 Standard: Batch geocoding using Access token✅ Enhanced: Batch geocoding using Access token
Geometry service using access token
✅ Calculate a buffer without API key
Access Living Atlas restricted content-Premium content
✅ ArcGIS Platform w/ pay-as-you-go and OAuth
Access Living Atlas restricted content-Subscriber content
✅ Traffic layers using OAuth
Spatial analysis using API keys
✅ Spatial analysis using OAuth
Home4. 🤦 Troubleshooting | Common mistakesSpatial analysis using API keys

Spatial analysis using API keys

Number of APIs: 1

  1. ✅ 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}}
Previous
✅ Traffic layers using OAuth
Next
✅ Spatial analysis using OAuth