Skip to content

niyasrahman/gatsby-source-dailymotion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published