* 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.4 KiB
youtubei.js / Actions
Class: Actions
Constructors
new Actions()
new Actions(
session):Actions
Parameters
• session: Session
Returns
Defined in
Properties
session
session:
Session
Defined in
Methods
execute()
execute(endpoint, args)
execute<
T>(endpoint,args):Promise<ParsedResponse<T>>
Executes an API call.
Type Parameters
• T extends string
Parameters
• endpoint: T
The endpoint to call.
• args
Call arguments
• args.parse: true
• args.protobuf?: false
• args.serialized_data?: any
• args.skip_auth_check?: boolean
Returns
Promise<ParsedResponse<T>>
Defined in
execute(endpoint, args)
execute<
T>(endpoint,args?):Promise<ApiResponse>
Type Parameters
• T extends string
Parameters
• endpoint: T
• args?
• args.parse?: false
• args.protobuf?: true
• args.serialized_data?: any
• args.skip_auth_check?: boolean
Returns
Promise<ApiResponse>
Defined in
stats()
stats(
url,client,params):Promise<Response>
Makes calls to the playback tracking API.
Parameters
• url: string
The URL to call.
• client
The client to use.
• client.client_name: string
• client.client_version: string
• params
Call parameters.
Returns
Promise<Response>