Implement the youtube sdk on the backend
https://developers.google.com/youtube/v3/quickstart/php
GET /api/v3/media/youtube-importer/import/videos
should return a list of available videos from youtube and any videos that are in process / queued
Each video should return the title, created date, number of views from YT
The response should include the user's daily limit, the number of queued and the number of videos currently transferring.
GET /api/v3/media/youtube-importer/videos?status=transferred
should return videos that have been transferred. Probably a version of the user's channel feed with the video filter and an extension that allows for filtering on imported videos by source.
Both gets should be paginated and support infinite scrolling
The backend should never return the user's YT oauth information, but it must return a "yt_connected" timestamp for accounts that have successfully authed and stored their token.
The user settings data model must be extended to allow the settings of the "yt_auto_tranfer" flag
-
Add the google libraries for the PHP sdk to our compose stack -
Setup and configure the api keys and secrets and review -
@markeharding will need to provide and configure the keys -
Setup a Core\Media\YoutubeImporter module that interfaces with a set of functions so we can add other video imports to the same flow. -
Add in a "yt-importer" feature flag on the backend. Even though the backend is all new restful endpoints, this will control the settings on the clients -
Endpoints for getting video lists -
Updates to the user config (tokens, auto import settings)