-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added findItemsineBayStores support (#94)
* v2.7.7 * simple * add find items in ebay stores api
- Loading branch information
Showing
7 changed files
with
108 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,38 @@ | ||
const EbayToken = require('oauth-ebay'); | ||
const Ebay = require('../src/index'); | ||
const { clientId, clientSecret } = require('./credentials/index'); | ||
|
||
let ebay = new EbayToken({ | ||
let ebay = new Ebay({ | ||
clientID: clientId, | ||
clientSecret: clientSecret, | ||
grantType: 'client_credentials' | ||
body: { | ||
grant_type: 'client_credentials', | ||
scope: 'https://api.ebay.com/oauth/api_scope' | ||
|
||
} | ||
}); | ||
ebay.getAccessToken().then((data) => { | ||
console.log(data); | ||
}, (error) => { | ||
console.log(error); | ||
}); | ||
|
||
//console.log(ebay.getAccessToken()); | ||
|
||
// // //Search for Items by Keyword. | ||
ebay.getAccessToken() | ||
.then((data) => { | ||
console.log("generate tokensss"); | ||
console.log(data); | ||
}); | ||
|
||
console.log("++++++++++++++++++++"); | ||
|
||
ebay.getAccessToken() | ||
.then((data) => { | ||
console.log("generate tokensss"); | ||
console.log(data); | ||
}); | ||
|
||
|
||
setTimeout(() => { | ||
ebay.getAccessToken() | ||
.then((data) => { | ||
console.log("generate tokensss"); | ||
console.log(data); | ||
}); | ||
}, 7200); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters