Skip to content

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.

Package Youtube integration

This package is used for creating Youtube livestream for Webinar in Ulams.

Login in console cloud google and create new project Create new project in google console After created project got to the interfaces api and enable YouTube Data API v3 Enable interface Youtube data api

Copy Login data from youtube api 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 variable services.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.

Test details codecov phpunit

Method Path Auth Action
POST /api/admin/g-token/generate yes GoogleController@generateUrl
GET /api/refresh-token GoogleController@setRefreshToken

None.

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
Event Description Notification templates
YtProblem Email

None.

None.

None.

None.