The "Upload video from M3U8 URL" endpoint allows you to upload a video to the PandaVideo platform from an M3U8 URL. By making a POST request to the specified URL (
https://import.pandavideo.com:9443/videos/m3u8) and providing the necessary parameters in the request body, you can initiate the upload process.
To access the endpoint, you need to provide the necessary authentication in the headers using the "Authorization" field with the value "API_KEY".
The request body should include the following parameters:
|url||string||Yes||The M3U8 URL of the video file.|
|title||string||Yes||The title of the video.|
|folder_id||string||No||The ID of the folder where you want to upload the video.|
|description||string||No||The description of the video.|
200: Success. The video upload process was initiated successfully.
400: Bad request. Check the provided parameters or syntax.
401: Unauthorized. Make sure you provide a valid API key in the request headers.
By utilizing the "Upload video from M3U8 URL" endpoint, you can programmatically upload videos to the PandaVideo platform from an M3U8 URL. This allows you to import videos that are distributed using the M3U8 format.
The Recipes section provides a collection of code examples and sample implementations to help you understand and use the API effectively. Each recipe includes commented code that explains the purpose and functionality of each line. You can refer to these recipes as a guide to implement specific features or interact with the API endpoints.