Skip to content

Commit 6859293

Browse files
authored
Update CustomEncodingJSONExample.js
1 parent b90ea11 commit 6859293

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

Examples/CustomEncodingJSONExample.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@
33
const QencodeApiClient = require('qencode-api');
44

55
const apiKey = "your_api_key_here";
6-
7-
const payload = null;
6+
7+
// You can send any string as a payload, but JSON is most common case
8+
const payloadObject = {
9+
videoId: '3874239842932332',
10+
previewFilename: 'My file name'
11+
};
12+
13+
// in case your payload is JSON you need to stringify it first
14+
const payload = JSON.stringify(payloadObject);
815

916
let transcodingParams = {
1017
"source": [

0 commit comments

Comments
 (0)