Connect people, locations, and data using interactive maps. Work with smart, data-driven styles and intuitive analysis tools. Share your insights with the world or specific groups.
Go to siteThe ArcGIS Online API lets you work with ESRI's platform for mapping and spatial analysis. In Pipedream, harness this API to craft workflows combining GIS data management, location-based analytics, and automated mapping tasks. Pipedream's serverless architecture means you can trigger these workflows via HTTP requests, schedule them, or even fire them in response to emails or form submissions.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
arcgis_online: {
type: "app",
app: "arcgis_online",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://basemapstyles-api.arcgis.com/arcgis/rest/services/styles/v2/styles/arcgis/outdoor`,
headers: {
Authorization: `Bearer ${this.arcgis_online.$auth.oauth_access_token}`,
},
})
},
})
Spatial Data Updates on Schedule: Automate the process of updating GIS layers in ArcGIS Online by scheduling workflows in Pipedream. Fetch the latest data from an external database or API, transform it as needed, and push updates to keep maps current.
Incident Reporting and Mapping: Create a workflow triggered by a form submission or email that contains location data about incidents. Pipedream can parse this data, create a new feature in an ArcGIS layer, and send notifications to relevant stakeholders with the updated map link.
Geo-Triggered Alerts with Twilio: For real-time alerts based on geographic triggers, use Pipedream to monitor a dataset in ArcGIS Online for changes. If a feature enters a specified zone, automatically send an SMS via Twilio to notify personnel or customers in the affected area.
ArcGIS Online uses OAuth authentication. When you connect your ArcGIS Online account, Pipedream will open a popup window where you can sign into ArcGIS Online and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any ArcGIS Online API.
Pipedream requests the following authorization scopes when you connect your account:
GET
https://www.arcgis.com/sharing/rest/oauth2/authorize
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
POST
https://www.arcgis.com/sharing/rest/oauth2/token/
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://www.arcgis.com/sharing/rest/oauth2/token/
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}