This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports | |
var request = require("request"); | |
var fs = require('fs'); | |
var path = require("path"); | |
var mime = require('mime-types'); | |
let filepath = "/home/ethan/documents/myfile.mp4" | |
let filename = path.basename(filepath); | |
let client_api_key = "1234" | |
let client_user_key = "5678" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Imports | |
var request = require("request"); | |
var fs = require('fs'); | |
var path = require("path"); | |
var mime = require('mime-types'); | |
let filepath = "/home/ethan/Downloads/sample_iTunes.mov" | |
let filename = path.basename(filepath); | |
let client_api_key = "" | |
let client_user_key = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const revOrder = function(location) { | |
var options = { | |
method: 'POST', | |
url: 'https://api-sandbox.rev.com/api/v1/orders', | |
json: true, | |
headers: { | |
Authorization: auth_header, | |
'Content-Type': 'application/json' | |
}, | |
body: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const revOrder = function(location) { | |
var options = { | |
method: 'POST', | |
url: 'https://api-sandbox.rev.com/api/v1/orders', | |
json: true, | |
headers: { | |
Authorization: auth_header, | |
'Content-Type': 'application/json' | |
}, | |
body: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const revOrder = function(location) { | |
var options = { | |
method: 'POST', | |
url: 'https://api-sandbox.rev.com/api/v1/orders', | |
json: true, | |
headers: { | |
Authorization: auth_header, | |
'Content-Type': 'application/json' | |
}, | |
body: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var uppy = window.Robodog.pick({ | |
providers: [], | |
waitForEncoding: true, | |
autoProceed: true, | |
restrictions: { | |
maxNumberOfFiles: 1, | |
maxFileSize: (250*1024*1024), | |
allowedFileTypes: ['.jpg', '.jpeg', '.png'] | |
}, | |
params: { |
OlderNewer