Created
March 27, 2017 08:06
-
-
Save haruiz/e4dc974f3287383b93751cfda19ff586 to your computer and use it in GitHub Desktop.
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 axios = require("axios"); | |
module.exports = { | |
getToken : async(apikey)=>{ | |
var config = { | |
headers: {'Ocp-Apim-Subscription-Key': apikey} | |
}; | |
return axios.post("https://api.cognitive.microsoft.com/sts/v1.0/issueToken",{}, config); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment