Skip to content

Commit a22b401

Browse files
committed
fixed error in getItemsbykeyword
1 parent f316c92 commit a22b401

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

demo/browseApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
const Ebay = require('../src/index');
22
let access_token = "";
33
let ebay = new Ebay({
4-
clientID: "-- Client ID ----",
5-
clientSecret: '-- Client Secret--',
4+
clientID: "--Client ID ----",
5+
clientSecret: '-- Client Secret----',
66
body: {
77
grant_type: "client_credentials",
88
scope: 'https://api.ebay.com/oauth/api_scope'

demo/getAccessToken.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
const Ebay = require('../src/index');
22

33
let ebay = new Ebay({
4-
clientID: "Ajaykuma-nodeapi-PRD-bf1a91299-ed4deb45",
5-
clientSecret: 'PRD-f1a91299c206-f184-45e0-b068-f139',
4+
clientID: "--Client Id----",
5+
clientSecret: '-- Client Secret --',
66
body: {
77
grant_type: "client_credentials"
88
}
99
});
1010
ebay.getAccessToken().then((data) => {
11-
console.log(data.access_token);
11+
console.log(data);
1212
}, (error) => {
1313
console.log(error);
1414
});

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Ebay.prototype = {
2323
this.options.param = "keywords";
2424
let url = urlObject.buildSearchUrl(this.options);
2525
console.log(url);
26-
return makeRequest(url).then((data) => {
26+
return getRequest(url).then((data) => {
2727
let result = JSON.parse(data);
2828
return result["findItemsByKeywordsResponse"];
2929

0 commit comments

Comments
 (0)