Skip to content

Instantly share code, notes, and snippets.

@buggtb
Created January 23, 2019 22:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buggtb/7883fd2aba5c3b8215e8c8890c7881e9 to your computer and use it in GitHub Desktop.
Save buggtb/7883fd2aba5c3b8215e8c8890c7881e9 to your computer and use it in GitHub Desktop.
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