Skip to content

Latest commit

 

History

History
47 lines (38 loc) · 1.33 KB

SubmitVideo.md

File metadata and controls

47 lines (38 loc) · 1.33 KB

Submit video

HTTP Request

POST musora-api/submit-video

Permissions

- Only authenticated user can access the endpoint

Request Parameters

path|query|body key required description
body video yes Video url

Request Example:

$.ajax({
    url: 'https://www.musora.com' +
        '/musora-api/submit-video',
    type: 'post',
    dataType: 'json',
    data:{
        "video":"http://youdstube.com"
    },
    success: function(response) {
        // handle success
    },
    error: function(response) {
        // handle error
    }
});

Response Example (200):

{
  "success": true,
  "title": "Thanks for your submission!",
  "message": "Our team will combine your video with the other student videos to create next months episode. Collaborations are typically released on the first of each month."
}