Experimental project

This is a sandbox project, which contains experimental code for developer use only.

YouTube Provider

Summary

YouTube Provider is an implementation of the Providers module. It takes a YouTube user's username, makes an API call to get that user's uploads, and creates nodes for each uploaded video returned from the API call.

Installation

  1. Download and enable the Providers module.
  2. Enable this module.
  3. Extract youtube_video_content_type.rar into your modules directory and enable it.

Usage

  1. Navigate to Structure > Providers (/admin/structure/providers/)
  2. Click 'add' in the YouTube Provider row
  3. Create the new provider.
    Title: The title of the provider.
    Username: The username of the YouTube user whose uploads you want to import.
    Max Results: The maximum number of items to return with each API call.
    Start Index: The position in the user's upload history to begin importing items.
    Content Type: The content type to use when creating nodes. Select 'YouTube Video', which is the content type created in step 3 of installation.
    Node Author: The user who will be shown as the node author.
  4. Click 'Save'. This will save the provider and redirect you to that provider's page (/provider/pid)
  5. You can click the 'Update' tab to import new items. A success message will display how many videos were creates and updated. Updates will also run with cron, and messages will be stored in the watchdog table.

Project information