Hey when trying to make request to Video processing. we get 404
We tried https://api.uploadcare.com/uuid/video/-/cut/0/5/
also https://api.uploadcare.com/files/uuid/video/-/cut/0/5/
And here are our headers
const headers = {
'Content-Type': `application/json`,
'Accept': `application/vnd.uploadcare-${this.apiVersion}+json`,
'Date': date,
'Authorization': `Uploadcare ${this.publicKey}:${signature}`,
};
apiVersion = v0.7
and signature
private generateSignature(method: string, uri: string, contentType: string, body: string = ''): { date: string, signature: string } {
const contentMd5 = crypto.createHash('md5').update(body).digest('hex');
const date = new Date().toUTCString();
const signString = [
method.toUpperCase(),
contentMd5,
contentType,
date,
uri
].join('\n');
const signature = crypto
.createHmac('sha1', this.secretKey)
.update(signString)
.digest('hex');
return { date, signature };
}
Thanks in advance