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 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"; | |
console.debug(dateWithTimeZone); | |
// list all databases | |
//let result = getAuthorizationTokenUsingMasterKey("GET", "", "dbs", dateWithTimeZone, masterKey); |