2017 © Pedro Peláez
 

silverstripe-module silverstripe-youtubefeed

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

image

littlegiant/silverstripe-youtubefeed

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

  • Sunday, March 26, 2017
  • by stevie-mayhew
  • Repository
  • 8 Watchers
  • 12 Stars
  • 968 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 6 Versions
  • 3 % Grown

The README.md

SilverStripe YouTube Feed

Requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects., (*1)

Features

  • Configurable auto-update interval (disabled by default)
  • CLI task YouTubeFeedTask framework/sake YouTubeFeedTask flush=all
  • Stores video information into YouTubeVideo DataObject.

Installation

Installation via composer, (*2)

$ composer require littlegiant/silverstripe-youtubefeed

You're then required to create an application at Google Developers Console., (*3)

  1. Click 'Create Project'
  2. Under "APIs & auth" > "APIs" enable "YouTube Data API"
  3. Under "APIs & auth" > "Credentials" click "Add credentials" (OAuth2 Client ID) then 'Configure consent screen' and enter your project name
  4. The 'Application Type' should be 'Web application' then for 'Authorized redirect URIs' enter http://yoursitename.tld/youtube/authenticate then "Create"
  5. Enter your Client ID and Client Secret into Settings in the CMS

Options

Auto-update is disabled by default, and can be enabled within the CMS Settings "YouTube" tab., (*4)

Extending YouTube Feed

  • onAfterCreate(YouTubeVideo $videoObject)

Called after a YouTubeVideo DataObject is created as a result of being found in a playlist of the connected YouTube account., (*5)

public function onAfterCreate(YouTubeVideo $videoObject)
{
    // Do something with the newly created $videoObject
}

Contributing

Submit a pull request or issue and i'll try reply on the same working day., (*6)

Code guidelines

This project follows the standards defined in:, (*7)

The Versions

26/03 2017

dev-master

9999999-dev https://github.com/Little-Giant/silverstripe-youtubefeed

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

  Sources   Download

MIT

The Requires

 

by Oliver Shaw

26/03 2017

2.1.0

2.1.0.0 https://github.com/Little-Giant/silverstripe-youtubefeed

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

  Sources   Download

MIT

The Requires

 

by Oliver Shaw

06/12 2016

2.0.1

2.0.1.0 https://github.com/Little-Giant/silverstripe-youtubefeed

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

  Sources   Download

MIT

The Requires

 

by Oliver Shaw

03/09 2016

2.0.0

2.0.0.0 https://github.com/Little-Giant/silverstripe-youtubefeed

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

  Sources   Download

MIT

The Requires

 

by Oliver Shaw

01/09 2015

1.0.1

1.0.1.0

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

  Sources   Download

MIT

The Requires

 

by Oliver Shaw

01/09 2015

1.0.0

1.0.0.0

YouTubeFeed requests videos from an authenticated YouTube 'My Uploads' feed and converts them into YouTubeVideo DataObjects.

  Sources   Download

MIT

The Requires

 

by Oliver Shaw