Get my videos
From UBot Studio
(Difference between revisions)
(Created page with "'''$get my videos''' is a function that retrieves the video IDs of the first page of uploaded videos from a user's YouTube channel. This function provides a list of video IDs...") |
|||
Line 1: | Line 1: | ||
− | '''$get my videos''' is a function that retrieves the video IDs of the | + | '''$get my videos''' is a function that retrieves the video IDs of the uploaded videos from a user's YouTube channel. |
− | + | ||
− | + | ||
== Return Value == | == Return Value == | ||
Line 8: | Line 6: | ||
== Example == | == Example == | ||
<pre> | <pre> | ||
+ | ui console view | ||
connect to youtube("path/to/your/client secret.json") | connect to youtube("path/to/your/client secret.json") | ||
− | + | log($get my videos) | |
</pre> | </pre> | ||
The above script connects to YouTube using the client secret file "client secret.json". Be sure to replace "path/to/your/" with the actual path to your client secret file. | The above script connects to YouTube using the client secret file "client secret.json". Be sure to replace "path/to/your/" with the actual path to your client secret file. | ||
− | Next, it | + | Next, it retrieves a list of video IDs via the '''$get my videos''' function and logs it to the console. |
− | + | ||
− | + | ||
− | + | ||
− | + |
Latest revision as of 15:55, 4 July 2023
$get my videos is a function that retrieves the video IDs of the uploaded videos from a user's YouTube channel.
[edit] Return Value
This function returns a list of video IDs from the user's YouTube channel.
[edit] Example
ui console view connect to youtube("path/to/your/client secret.json") log($get my videos)
The above script connects to YouTube using the client secret file "client secret.json". Be sure to replace "path/to/your/" with the actual path to your client secret file.
Next, it retrieves a list of video IDs via the $get my videos function and logs it to the console.