Skip to content

Instantly share code, notes, and snippets.

@tetrashine
Created August 30, 2020 06:52
Show Gist options
  • Select an option

  • Save tetrashine/bed055b071bd9ea1bea35db501c5628a to your computer and use it in GitHub Desktop.

Select an option

Save tetrashine/bed055b071bd9ea1bea35db501c5628a to your computer and use it in GitHub Desktop.
const https = require("https");
const data = "{\"limit\": 1000}";
const req = https.request('https://api.dropboxapi.com/2/file_requests/count', {
method: 'POST',
headers: {
'Authorization': `Bearer ${TOKEN}`,
},
}, (res) => {
console.log("statusCode: ", res.statusCode);
console.log("headers: ", res.headers);
res.on('data', function(d) {
process.stdout.write(d);
});
})
req.end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment