Mailgun

Sending, receiving and tracking email effortlessly

Go to site

Integrate the Mailgun API with the Spotify API

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

Send Mail
Sends an email
Get Current User's Recently Played Tracks
See https://developer.spotify.com/documentation/web-api/reference/player/get-recently-played/
GET /albums/{id}
Get an Album
GET /browse/categories/{category_id}
Get a Single Browse Category
GET /browse/categories/{category_id}/playlists
Get a Category's playlists

Connect Mailgun

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://${auths.mailgun.region && auths.mailgun.region === "EU" ? "api.eu" : "api"}.mailgun.net/v3/domains`,
  auth: {
    username: `api`,
    password: `${auths.mailgun.api_key}`,
  },
})

Connect Spotify

return await require("@pipedreamhq/platform").axios(this, {
  url: `https://api.spotify.com/v1/me`,
  headers: {
    Authorization: `Bearer ${auths.spotify.oauth_access_token}`,
  },
})