File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
const Ebay = require ( '../src/index' ) ;
2
2
let access_token = "" ;
3
3
let ebay = new Ebay ( {
4
- clientID : "-- Client ID ----" ,
5
- clientSecret : '-- Client Secret--' ,
4
+ clientID : "--Client ID ----" ,
5
+ clientSecret : '-- Client Secret---- ' ,
6
6
body : {
7
7
grant_type : "client_credentials" ,
8
8
scope : 'https://api.ebay.com/oauth/api_scope'
Original file line number Diff line number Diff line change 1
1
const Ebay = require ( '../src/index' ) ;
2
2
3
3
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 -- ' ,
6
6
body : {
7
7
grant_type : "client_credentials"
8
8
}
9
9
} ) ;
10
10
ebay . getAccessToken ( ) . then ( ( data ) => {
11
- console . log ( data . access_token ) ;
11
+ console . log ( data ) ;
12
12
} , ( error ) => {
13
13
console . log ( error ) ;
14
14
} ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ Ebay.prototype = {
23
23
this . options . param = "keywords" ;
24
24
let url = urlObject . buildSearchUrl ( this . options ) ;
25
25
console . log ( url ) ;
26
- return makeRequest ( url ) . then ( ( data ) => {
26
+ return getRequest ( url ) . then ( ( data ) => {
27
27
let result = JSON . parse ( data ) ;
28
28
return result [ "findItemsByKeywordsResponse" ] ;
29
29
You can’t perform that action at this time.
0 commit comments