Created
October 18, 2017 07:03
-
-
Save PritiKumr/7e725388bf613f4e5fa98106ac419a77 to your computer and use it in GitHub Desktop.
Freshdesk Oauth template variable error
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
(function() { | |
"use strict"; | |
return { | |
initialize: function() { | |
var self = this, | |
headers = { Authorization: 'bearer <%= access_token %>'}, | |
reqData = { headers: headers, isOAuth: true }, | |
url = 'https://requestb.in/xnxqp7xn'; | |
this.$request.get(url, reqData) | |
.done(function(data) { | |
console.log(data); | |
}) | |
} | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment