Skip to content

Instantly share code, notes, and snippets.

Leszek Janiszewski ljaniszewski

Block or report user

Report or block ljaniszewski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View DocDBAuthHeaderWithNode.js
var crypto = require("crypto");
var moment = require("moment");
let masterKey = "<your documentDB read&write key>";
let dateInRfc7231Format = moment().utc().format("ddd, DD MMM YYYY HH:mm:ss");
let dateWithTimeZone = dateInRfc7231Format + " GMT";
// list all databases
//let result = getAuthorizationTokenUsingMasterKey("GET", "", "dbs", dateWithTimeZone, masterKey);
You can’t perform that action at this time.