Youtube plugin for Milosa Social Media Aggregator Bundle
composer require milosa/social-media-aggregator-youtube-plugin
Get Youtube API access here: https://developers.google.com/youtube/v3/getting-started
Add the following config to your configuration file:
milosa_social_media_aggregator:
plugins:
youtube:
auth_data:
api_key: '%env(YOUTUBE_API_KEY)%'
enable_cache: true
cache_lifetime: 3600
number_of_items: 20
channel_id: UCLA_DiR1FfKNvjuUpBHmylQ
template: youtube.twig