escolalms / youtube
Escola LMS youtube integration.
Installs: 7 944
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.4
- escolalms/core: ^1
- escolalms/settings: ^0
- google/apiclient: ^2.0
- laravel/framework: >=8.0
Requires (Dev)
- nunomaduro/larastan: ^2.0
- orchestra/testbench: >=5.0
- phpunit/phpunit: ^9.0
README
Package Youtube integration
What does it do
This package is used for creating Youtube livestream for Webinar in EscolaLms.
Installing
composer require escolalms/youtube
- configure integration in https://console.cloud.google.com/
Configuration in console cloude youtube
Login in console cloud google and create new project After created project got to the interfaces api and enable YouTube Data API v3
Go to Login Data and create Api key and OAuth 2.0 client IDs and enter data for variables:
services.youtube.client_id
services.youtube.client_secret
services.youtube.api_key
services.youtube.redirect_url
After entered data, you must generate refresh token. If you generated refresh token with api from endpoints:
api/admin/g-token/generate POST {"email": "email"} AUTHORIZE
and opened generated url and follow the instructions- After action upper yt generated refresh token for variable
services.youtube.refresh_token
Or you can generated refresh token manual and enter for variableservices.youtube.refresh_token
Tests
Run ./vendor/bin/phpunit --filter=Youtube
to run tests. See tests folder as it's quite good staring point as documentation appendix.