You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (typeof this.baseUrl == 'undefined') throw "No endpoint URL set";
22121
22122
@@ -22143,6 +22144,7 @@ var Client = function () {
22143
22144
_createClass(Client, [{
22144
22145
key: "request",
22145
22146
value: function request(method, path, returnClass, options) {
22147
+
var _this = this;
22146
22148
22147
22149
var access_token = this.options.access_token;
22148
22150
@@ -22160,7 +22162,8 @@ var Client = function () {
22160
22162
method: method,
22161
22163
headers: {
22162
22164
'Authorization': 'Bearer ' + access_token,
22163
-
'Accept': 'application/json'
22165
+
'Accept': 'application/json',
22166
+
'X-User-Agent': "PHQ-JS-SDK/" + _this.version
22164
22167
}
22165
22168
}).then(function (response) {
22166
22169
return response.json();
@@ -22342,9 +22345,7 @@ function _inherits(subClass, superClass) {
22342
22345
if (typeof superClass !== "function" && superClass !== null) {
22343
22346
throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : _typeof(superClass)));
0 commit comments