We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a3ac00 commit b902bd9Copy full SHA for b902bd9
lib/apiUrl.js
@@ -11,10 +11,8 @@
11
12
module.exports = function apiUrl(path, options, tokenNeeded) {
13
var queryObj = {};
14
- if(options.oauth)
15
- return protocol + '://' + proxyHost + '/' + path;
16
17
- if (tokenNeeded) {
+ if (!options.oauth && tokenNeeded) {
18
queryObj.api_token = options.apiToken;
19
}
20
if (options.strictMode === true) {
0 commit comments