You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"json": "{\n\"_access\": {\n\"update\": [\n\"[email protected]\",\n\"[email protected]\" //Update the access according to category\n ],\n // If you want to restrict the video, update access read\n\"read\": [\n\"[email protected]\"\n ]\n\n }\n}\n\n",
23
+
"formUrlEncoded": [],
24
+
"multipartForm": []
25
+
},
26
+
"script": {},
27
+
"vars": {},
28
+
"assertions": [],
29
+
"tests": "",
30
+
"auth": {
31
+
"mode": "inherit"
32
+
}
33
+
}
34
+
},
35
+
{
36
+
"type": "http",
37
+
"name": "Get project to check the flow is finished",
"req": "const fs = require('fs');\nconst path = require('path');\n\n// File details\nconst filename = \"CHANGE HERE\";\nconst filePath = \"CHANGE HERE\";\nbru.setEnvVar(\"video_name\",filename);\n\n// Read the file as raw binary data\nconst fileContent = fs.readFileSync(filePath);\n\n// Set request headers\nreq.setHeader(\"Content-Type\", \"video/mp4\"); // File content type\nreq.setHeader(\"Accept\", \"application/json, text/plain, */*\"); \nreq.setHeader(\"Accept-Encoding\", \"gzip, deflate, br, zstd\"); \nreq.setHeader(\"Content-Length\", fileContent.length);\n\n// Attach the file content as the request body\nreq.setBody(fileContent);\n",
170
+
"res": "let data = res.body ;\nbru.setEnvVar(\"main_file_version_id\", data.version_id);\nbru.setEnvVar(\"video_key\", data.key);"
171
+
},
172
+
"vars": {},
173
+
"assertions": [],
174
+
"tests": "",
175
+
"auth": {
176
+
"mode": "inherit"
177
+
}
178
+
}
179
+
},
180
+
{
181
+
"type": "http",
182
+
"name": "Step 4- Create a flow",
183
+
"seq": 4,
184
+
"request": {
185
+
"url": "{{baseURl}}/api/flows/",
186
+
"method": "POST",
187
+
"headers": [
188
+
{
189
+
"name": "content-type",
190
+
"value": "application/vnd.project.partial+json",
191
+
"enabled": true
192
+
}
193
+
],
194
+
"params": [],
195
+
"body": {
196
+
"mode": "json",
197
+
"json": "{\n\"version_id\":\"{{main_file_version_id}}\", //response of the put the video 'version_id' \n\"key\": \"{{video_key}}\",//response of the put the video 'key' \n\"bucket_id\":\"{{bucket_id}}\", // create video response \n\"deposit_id\":\"{{video_id}}\" // create video response\n}",
0 commit comments