Skip to main content

Migrating Videos

Migrating videos within Teyuto's ecosystem can be seamlessly achieved through the automated migration system or directly utilizing the APIs. This guide provides step-by-step instructions on how to migrate videos using either method.

Automated Migration System

Teyuto offers an automated migration system that simplifies the process of transferring videos between platforms. Here's how to migrate videos using the automated system:

Import Videos from Dropbox

Migration via APIs

Alternatively, developers can migrate videos programmatically using Teyuto's APIs. Here's how to do it:

Single Process

To migrate a single video, make a POST request to the Teyuto API with the following cURL command:

curl --location --request POST 'https://api.teyuto.tv/v2/videos' \
--header 'Authorization: {API_KEY}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'title=example' \
--data-urlencode 'origin_url=https://example.com/video.mp4'

Batch Process

To migrate multiple videos in a batch, send a JSON array with the required fields. Each element of the array should include:

  • title: The title of the video.
  • description: A brief description of the video.
  • cover_url: The URL of the video's cover image.
  • video_url: The URL of the video.
  • collection: The ID of the collection to which the video belongs.

Make a POST request to the https://api.teyuto.tv/v2/migrations/import-video endpoint. Here's an example of how to format the cURL command:

curl --location --request POST 'https://api.teyuto.tv/v2/migrations/import-video' \
--header 'Authorization: {API_KEY}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'all=[{"title":"Video Title","description":"Video Description","cover_url":"Cover_Image_URL","video_url":"Video_URL","collection":"Collection_ID"}]'

Conclusion

Migrating videos to Teyuto's platform can be accomplished effortlessly through the automated migration system or programmatically via APIs. Whether you prefer a streamlined approach or require customization and control, Teyuto provides flexible options to suit your needs.

For more detailed information on using Teyuto's APIs for video migration, refer to the official API documentation provided by Teyuto.