YouTubePHP Documentation

Auth

Table of Contents

Interfaces

ReauthorizerInterface
A way to get a brand-new grant when the existing one can no longer be refreshed: there is no refresh token, or Google revoked it.
TokenStoreInterface
Somewhere durable to keep the OAuth grant.

Classes

DeviceCodeReauthorizer
Signs in again with Google's device flow: shows a code, then waits for someone to enter it at `google.com/device` with the account that should be signed in.
EnvFileTokenStore
Keeps the grant in a `.env` file, beside the rest of the settings.
OAuth
Google's OAuth 2.0 endpoints, for the two grants a headless bot needs:
OAuthException
Google's OAuth server refused a request.
Scope
This file is generated from spec/discovery.json (YouTube Data API v3, revision 20260924) by tools/generate.php. Do not edit it by hand - run `composer spec:build` instead.
On this page

Search results