Get video details

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 18: Line 18:
 
The script above connects to YouTube using the client secret file "client secret.json". Please replace "path/to/your/" with the actual path to your client secret file.
 
The script above connects to YouTube using the client secret file "client secret.json". Please replace "path/to/your/" with the actual path to your client secret file.
  
It uses the "$get video details" function to retrieve the details of the YouTube video with the ID "dQw4w9WgXcQ", and logs it to the console.
+
It uses the '''$get video details''' function to retrieve the details of the YouTube video with the ID "dQw4w9WgXcQ", and logs it to the console.

Latest revision as of 16:00, 4 July 2023

$get video details is a function that retrieves the details of a YouTube video using its video ID.

[edit] Parameters

Video Id: This is the unique identifier for the YouTube video whose details are to be retrieved. The video ID can be found in the video's URL.

[edit] Return Value

This function returns a yaml object of the video's details.

[edit] Example

ui console view
connect to youtube("path/to/your/client secret.json")
log object($get video details("dQw4w9WgXcQ"))

The script above connects to YouTube using the client secret file "client secret.json". Please replace "path/to/your/" with the actual path to your client secret file.

It uses the $get video details function to retrieve the details of the YouTube video with the ID "dQw4w9WgXcQ", and logs it to the console.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox