Package: youtube
Generated from api/packages/youtube
Source: api/packages/youtube · imported version 0.1.6. The sections after the README are extracted from the code on every docs build.
README
Section titled “README”Package Youtube integration
What does it do
Section titled “What does it do”This package is used for creating Youtube livestream for Webinar in Ulams.
Installing
Section titled “Installing”composer require ulams/youtube- configure integration in https://console.cloud.google.com/
Configuration in console cloude youtube
Section titled “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_idservices.youtube.client_secretservices.youtube.api_keyservices.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"} AUTHORIZEand opened generated url and follow the instructions- After action upper yt generated refresh token for variable
services.youtube.refresh_tokenOr you can generated refresh token manual and enter for variableservices.youtube.refresh_token
Run ./vendor/bin/phpunit --filter=Youtube to run tests. See tests folder as it’s quite good staring point as documentation appendix.
More documentation in the package
Section titled “More documentation in the package”- api/packages/youtube/ADMIN.md
- api/packages/youtube/docs/create_new_project_in_google_console.png
- api/packages/youtube/docs/enable_yt_data_api.png
- api/packages/youtube/docs/login_data.png
API endpoints
Section titled “API endpoints”| Method | Path | Auth | Action |
|---|---|---|---|
POST |
/api/admin/g-token/generate |
yes | GoogleController@generateUrl |
GET |
/api/refresh-token |
GoogleController@setRefreshToken |
Permissions
Section titled “Permissions”None.
Settings
Section titled “Settings”Registered with AdministrableConfig::registerConfig (editable in the admin panel under Configuration → Settings).
| Key | Rules | Public | Read-only |
|---|---|---|---|
services.youtube.refresh_token |
nullable, string | no | |
services.youtube.client_id |
nullable, string | no | |
services.youtube.client_secret |
nullable, string | no | |
services.youtube.api_key |
nullable, string | no | |
services.youtube.redirect_url |
nullable, string | no |
Events
Section titled “Events”| Event | Description | Notification templates |
|---|---|---|
YtProblem |
Notification templates registered here
Section titled “Notification templates registered here”None.
Artisan commands
Section titled “Artisan commands”None.
Scheduled jobs
Section titled “Scheduled jobs”None.
Environment variables read
Section titled “Environment variables read”None.