youtubei.js / Managers / AccountManager
Class: AccountManager
Defined in: src/core/managers/AccountManager.ts:10
Constructors
Constructor
new AccountManager(
actions):AccountManager
Defined in: src/core/managers/AccountManager.ts:13
Parameters
actions
Returns
AccountManager
Methods
getInfo()
Call Signature
getInfo(
all):Promise<AccountItem[]>
Defined in: src/core/managers/AccountManager.ts:20
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[]>
Call Signature
getInfo(
all?):Promise<AccountInfo>
Defined in: src/core/managers/AccountManager.ts:24
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>
getSettings()
getSettings():
Promise<Settings>
Defined in: src/core/managers/AccountManager.ts:50
Gets YouTube settings.
Returns
Promise<Settings>