Follow the below steps to upload a file to VdoCipher
git clone git@github.com:harshalbhakta/VdoCipherRubyUploader.git
https://dev.vdocipher.com/api/docs/swagger/
curl -X PUT https://dev.vdocipher.com/api/videos?title=Hello -H "accept: application/json" -H "content-type: application/json" -H "Authorization: Apisecret XXXXXXX"
You will get a response similar to the one shown below.
{
"clientPayload": {
"policy": "",
"key": "",
"x-amz-signature": "",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-date": "20200828T000000Z",
"x-amz-credential": "",
"uploadLink": "https://vdo-ap-southeast.s3-accelerate.amazonaws.com"
},
"videoId": ""
}
params = {
"clientPayload": {
"policy": "",
"key": "",
"x-amz-signature": "",
"x-amz-algorithm": "AWS4-HMAC-SHA256",
"x-amz-date": "20200828T000000Z",
"x-amz-credential": "",
"uploadLink": "https://vdo-ap-southeast.s3-accelerate.amazonaws.com"
},
"videoId": ""
}
$ ruby execute.rb