gatsby-source-spreaker

1.0.0 • Public • Published

gatsby-source-spreaker

🎙 Source plugin for getting a podcast show and its episodes from the Spreaker API

Usage

Install the plugin

npm install --save gatsby-source-spreaker

or

yarn add gatsby-source-spreaker

Add the plugin to your gatsby-config.js

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "gatsby-source-spreaker",
      options: {
        // See options section for more information
        showId: 1433865,
      },
    },
  ],
};

Options

Key Description
showId (required) Id of the podcast show. You can get it from the url (www.spreaker.com/show/1433865)

Example of query

query ShowWithEpisodes {
   spreakerShow {
      title
      description
      image {
        childImageSharp {
          fixed(width: 300, height: 300) {
            ...GatsbyImageSharpFixed
          }
        }
      }
      episodes {
        title
        episode_id
        published_at(formatString: "MMMM DD YYYY")
        duration
      }
    }
}

Package Sidebar

Install

npm i gatsby-source-spreaker

Weekly Downloads

1

Version

1.0.0

License

none

Unpacked Size

4.13 kB

Total Files

3

Last publish

Collaborators

  • dseoane