🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.

Strava

Designed by athletes, for athletes, Strava's mobile app and website connect millions of runners and cyclists through the sports they love.

Go to site

Integrate the Strava API with the Discord Webhook API

Setup the Strava API trigger to run a workflow which integrates with the Discord Webhook API. Pipedream's integration platform allows you to integrate Strava and Discord Webhook remarkably fast. Free for developers.

Connect Strava

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    strava: {
      type: "app",
      app: "strava",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://www.strava.com/api/v3/athlete`,
      headers: {
        Authorization: `Bearer ${this.strava.$auth.oauth_access_token}`,
      },
    })
  },
})

Connect Discord Webhook

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord_webhook: {
      type: "app",
      app: "discord_webhook",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        Authorization: `Bearer ${this.discord_webhook.$auth.oauth_access_token}`,
      },
    })
  },
})