Skip to content

Instantly share code, notes, and snippets.

@PritiKumr
Created October 18, 2017 07:03
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 PritiKumr/7e725388bf613f4e5fa98106ac419a77 to your computer and use it in GitHub Desktop.
Save PritiKumr/7e725388bf613f4e5fa98106ac419a77 to your computer and use it in GitHub Desktop.
Freshdesk Oauth template variable error
(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