1.0.0 ā€¢ Published 4 years ago

gatsby-source-spreaker v1.0.0

Weekly downloads
18
License
-
Repository
-
Last release
4 years ago

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

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