Created
January 23, 2019 22:11
-
-
Save buggtb/7883fd2aba5c3b8215e8c8890c7881e9 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
kc.init({ onLoad: 'login-required', token, refreshToken }) | |
.success(authenticated => { | |
if (authenticated) { | |
axios.get('https://..../Home') | |
.then(function (response) { | |
// handle success | |
console.log(response); | |
axios.get('https://..../api/repo/files/:public:OTV/tree?showHidden=false&filter=*.wcdf|FILES_FOLDERS', { headers: { 'content-type': 'application/json', | |
'Authorization': `Bearer `+kc.token} }) | |
.then(function (response) { | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment