Heap

Fuel product growth and team agility. Heap automatically captures web and mobile app behavioral data. Retroactively analyze behavioral data without writing code.

Go to site

Integrate the Heap API with the Spotify API

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

GET /albums/{id}

Get an Album

 
Try it
GET /browse/categories/{category_id}

Get a Single Browse Category

 
Try it
GET /browse/categories/{category_id}/playlists

Get a Category's playlists

 
Try it
GET /browse/new-releases

Get a List of New Releases

 
Try it

Connect Heap

// From the docs: https://docs.heap.io/reference#track-1
// "Requests are limited to 30 requests per 30 seconds per identity per app_id"
return await require("@pipedreamhq/platform").axios(this, {
  method: "POST",
  url: `https://heapanalytics.com/api/track`,
  headers: {
    "Content-Type": "application/json",
  },
  data: {
    app_id: auths.heap.app_id,
    identity: params.identity,
    event: params.event,
    timestamp: params.timestamp || (new Date()).toISOString(),
    properties: params.properties,
  }
})

Connect Spotify

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