gatsby-source-dailymotion
Gatsby source to fetch data from dailymotion API
Last updated 8 months ago by niyasrahman .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gatsby-source-dailymotion 
SYNC missed versions from official npm registry.

gatsby-source-dailymotion

Source plugin for pulling data into Gatsby from Dailymotion user videos endpoint.

Install

npm install --save gatsby-source-dailymotion or yarn add gatsby-source-dailymotion

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-dailymotion`,
    options: {
      options: {
        user: "<USER-NAME>",
        limit: "100",
      },
  },
];

Plugin Options

user

REQUIRED
User ID that you want to fetch videos from

Examples of how to query:

Get all the videos:

{
  allDailymotionVideo{
      edges {
        node {
          id
          embed_url
          embed_html
          title
          url
          created_time
          thumbnail_large_url
          description
        }
      }
  	}
}

Note

Remember you are only fetching video information, so this will provide you with Video titles, descriptions, embedded iframes and thumbnails.

Current Tags

  • 1.0.0                                ...           latest (8 months ago)

1 Versions

  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |