gatsby-source-soundcloud
v2.0.6
Published
Gatsby source to fetch data from the SoundCloud API
Downloads
8
Maintainers
Readme
gatsby-source-soundcloud
A 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/
Install
npm install --save gatsby-source-soundcloud
gatsby-config.js
plugins: [
{
resolve: `gatsby-source-soundcloud`,
options: {
userID: '<<SoundCloud UserID eg. 6058227 >>',
clientID: '<< Add your SoundCloud client_id here>>'
},
},
...
]
Examples of how to query:
Get all the playlists:
{
allSoundcloudplaylist {
edges {
node {
title
description
tracks
}
}
}
}
Get the title and description of all tracks:
{
allSoundcloudtrack {
edges {
node {
title
description
}
}
}
}