8000 GitHub - Jedidiah/gatsby-source-soundcloud: Gatsby source to fetch data from the SoundCloud API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Gatsby source to fetch data from the SoundCloud API

License

Notifications You must be signed in to change notification settings

Jedidiah/gatsby-source-soundcloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
      }
    }
  }
}
0