|
9 | 9 | [](https://www.npmjs.com/package/ebay-api) |
10 | 10 |
|
11 | 11 | This eBay API implements both Traditional \(xml\) and the RESTful eBay API. |
12 | | -It supports `client credentials grant` and `authorization code grant` \(Auth'N'Auth, OAuth2 and IAF\). |
| 12 | +It supports `client credentials grant` and `authorization code grant` \(Auth'N'Auth, OAuth2 and IAF\). Digital Signature is supported too. |
13 | 13 |
|
14 | 14 | * [API Browser Examples](https://hendt.github.io/ebay-api/) |
15 | 15 | * [API Documentation](https://hendt.gitbook.io/ebay-api/) |
@@ -88,9 +88,9 @@ const eBay = new eBayApi({ |
88 | 88 |
|
89 | 89 | siteId: eBayApi.SiteId.EBAY_US, // required for traditional APIs, see https://developer.ebay.com/DevZone/merchandising/docs/Concepts/SiteIDToGlobalID.html |
90 | 90 |
|
91 | | - marketplaceId: eBayApi.MarketplaceId.EBAY_US, // defautl. required for RESTful APIs |
92 | | - acceptLanguage: eBayApi.Locale.en_US, // defautl |
93 | | - contentLanguage: eBayApi.ContentLanguage.en_US, // defautl. |
| 91 | + marketplaceId: eBayApi.MarketplaceId.EBAY_US, // default. required for RESTful APIs |
| 92 | + acceptLanguage: eBayApi.Locale.en_US, // default |
| 93 | + contentLanguage: eBayApi.ContentLanguage.en_US, // default. |
94 | 94 |
|
95 | 95 | // optional parameters, should be omitted if not used |
96 | 96 | devId: '-- devId --', // required for traditional Trading API |
@@ -254,6 +254,8 @@ This is how it would look like if you use `express`: |
254 | 254 | ```javascript |
255 | 255 | import eBayApi from 'ebay-api'; |
256 | 256 |
|
| 257 | + |
| 258 | +// This is your RUName endpoint like https://your-ebay.app/success |
257 | 259 | app.get('/success', async function (req, res) { |
258 | 260 | // 3. Get the parameter code that is placed as query parameter in redirected page |
259 | 261 | const code = req.query.code; // this is provided from eBay |
@@ -375,7 +377,7 @@ In any case eBay adds a new subdomain, it's also possible to configure whatever |
375 | 377 | eBay.buy.browse.api({subdomain: 'apiy'}).getItem() // now it will use https://apiy.ebay.com |
376 | 378 | ``` |
377 | 379 |
|
378 | | -### Change RESTful API call config |
| 380 | +### Return raw RESTful API response |
379 | 381 |
|
380 | 382 | ```javascript |
381 | 383 | eBay.buy.browse.api({ |
@@ -403,8 +405,8 @@ eBay.OAuth2.on('refreshClientToken', (token) => { |
403 | 405 | }); |
404 | 406 | ``` |
405 | 407 |
|
406 | | -To manuel refresh the auth token use `eBay.OAuth2.refreshAuthToken()` and for the client |
407 | | -token `eBay.OAuth2.refreshClientToken()`. |
| 408 | +To manual refresh the auth token use `eBay.OAuth2.refreshAuthToken()` and for the client |
| 409 | +token use `eBay.OAuth2.refreshClientToken()`. |
408 | 410 | Keep in mind that you need the 'refresh_token' value set. |
409 | 411 |
|
410 | 412 | ```javascript |
|
0 commit comments