Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Gatsby source plugin for loading items from an Amazon Wishlist

License

Notifications You must be signed in to change notification settings

unobvious-technology/gatsby-plugin-source-amazon-wishlist

Repository files navigation

gatsby-source-amazon-wishlist

Loads items from an Amazon Wishlist into Gatsby.js

Installation

npm install gatsby-source-amazon-wishlist

Usage

Edit gatsby-config.js to use the plugin:

{
    ...
    plugins: [
    ...
    {
      resolve: 'gatsby-source-amazon-wishlist',
      options: {
        wishlistUrl: 'https://www.amazon.de/registry/wishlist/2WVYBLDQ5KDSG',
        language: 'en-GB',
        limit: 25,
      },
    },
  ]
}

Options

  • wishlistUrl: URL to your amazon wishlist, this must be public or shared.
  • language: The language to pass in the Accept-Language header, I use en-GB because I like the euro sign in front of my prices, defaults to en-US.
  • limit: Whether to stop fetching at a specific limit, defaults to false

Querying

You can query the nodes created by the plugin as follows:

{
  allAmazonWishlistItem {
    edges {
      node {
        id
        title
        url
        price
        features
        comment
        priority
        purchased
        requested
        image {
          url
        }
      }
    }
  }
}

About

Gatsby source plugin for loading items from an Amazon Wishlist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published