Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jedidiah/gatsby-source-soundcloud
Gatsby source to fetch data from the SoundCloud API
https://github.com/jedidiah/gatsby-source-soundcloud
gatsby-source gatsbyjs soundcloud
Last synced: 3 months ago
JSON representation
Gatsby source to fetch data from the SoundCloud API
- Host: GitHub
- URL: https://github.com/jedidiah/gatsby-source-soundcloud
- Owner: Jedidiah
- License: mit
- Created: 2017-11-23T16:05:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-09T13:19:30.000Z (4 months ago)
- Last Synced: 2024-09-29T16:17:30.680Z (3 months ago)
- Topics: gatsby-source, gatsbyjs, soundcloud
- Language: JavaScript
- Size: 713 KB
- Stars: 10
- Watchers: 3
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# gatsby-source-soundcloud
A [gatsby](https://www.gatsbyjs.org/) 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
```javascript
plugins: [
{
resolve: `gatsby-source-soundcloud`,
options: {
userID: '<>',
clientID: '<< Add your SoundCloud client_id here>>'
},
},
...
]
```## Examples of how to query:
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
}
}
}
}
```