Gatsby source to fetch data from the SoundCloud API
npm install gatsby-source-soundcloudA gatsby source plugin for fetching all the tracks and playlists (sets) for a SoundCloud user.
Learn more about Gatsby plugins and how to use them here: https://www.gatsbyjs.org/docs/plugins/
npm install --save gatsby-source-soundcloud
``javascriptgatsby-source-soundcloud
plugins: [
{
resolve: ,`
options: {
userID: '<
clientID: '<< Add your SoundCloud client_id here>>'
},
},
...
]
Get all the playlists:
`graphql`
{
allSoundcloudplaylist {
edges {
node {
title
description
tracks
}
}
}
}
Get the title and description of all tracks:
`graphql``
{
allSoundcloudtrack {
edges {
node {
title
description
}
}
}
}