Get my videos

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(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 first page of uploaded videos from a user's YouTube channel.
+
'''$get my videos''' is a function that retrieves the video IDs of the uploaded videos from a user's YouTube channel.
 
+
This function provides a list of video IDs that corresponds to the videos uploaded by the user's YouTube channel, starting from the most recently uploaded video.
+
  
 
== 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")
set(#my video ids,$get my videos(),"Global")
+
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 sets a global variable '#my video ids' to the list of video IDs retrieved via the "$get my videos" function.
+
Next, it retrieves a list of video IDs via the '''$get my videos''' function and logs it to the console.
 
+
After running this script, you can use the #my video ids variable in your scripts to operate on each of your videos. For example, you can use it along with the 'change youtube video title' or 'change youtube video description' commands to make bulk updates to your videos.
+
 
+
Note: The list only contains the video IDs of the first page of your uploaded videos, sorted by upload date with the most recent at the top. If you have more than one page of videos, you'll need to use other functions or methods to navigate through all the pages.
+

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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox