* chore(deps): Add `meriyah` * feat(utils): Implement AST-based JS extractors * chore(utils): Remove old ast walker code * fix(Player): Migrate js extraction logic * chore(JsExtractor): Fix typo in tsdoc * perf(JsAnalyzer): Simplify main AST analysis logic * fix(JsAnalyzer): Change `break` to `return` in AST matching logic * chore: Update docs * chore: Don't export `PlayerInitializationOptions` * chore(evaluate): Update error message to include doc link * perf: Use a `for-loop` to find iife
2.1 KiB
youtubei.js / Managers / AccountManager
Class: AccountManager
Constructors
new AccountManager()
new AccountManager(
actions):AccountManager
Parameters
• actions: Actions
Returns
Defined in
src/core/managers/AccountManager.ts:13
Methods
getInfo()
getInfo(all)
getInfo(
all):Promise<AccountItem[]>
Retrieves the list of channels belonging to the signed-in account. Only useful when signed in through cookie. If signed in through OAuth, you will get the active channel only.
Parameters
• all: true
Returns
Promise<AccountItem[]>
Defined in
src/core/managers/AccountManager.ts:20
getInfo(all)
getInfo(
all?):Promise<AccountInfo>
Retrieves the active channel info for the signed-in account. Throws error if on_behalf_of_user was used to create the Innertube instance; use getInfo(true) instead.
Parameters
• all?: false
Returns
Promise<AccountInfo>
Defined in
src/core/managers/AccountManager.ts:24
getSettings()
getSettings():
Promise<Settings>
Gets YouTube settings.
Returns
Promise<Settings>