Skip to content

Commit

Permalink
fix(shopping): use iaf token in shopping API
Browse files Browse the repository at this point in the history
  • Loading branch information
dantio committed Oct 19, 2021
1 parent 19495ca commit f24f24d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/api/traditional/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ export default class Traditional extends Api {
},
xmlns: 'urn:ebay:apis:eBLBaseComponents',
calls: ShoppingCalls,
headers: (callName: string) => ({
headers: (callName: string, accessToken?: string) => ({
'X-EBAY-API-CALL-NAME': callName,
'X-EBAY-API-APP-ID': this.config.appId,
// 'X-EBAY-API-APP-ID': this.config.appId, deprecated on June 30, 2021
'X-EBAY-API-SITE-ID': this.config.siteId,
'X-EBAY-API-VERSION': 863,
'X-EBAY-API-REQUEST-ENCODING': 'xml'
'X-EBAY-API-REQUEST-ENCODING': 'xml',
...(accessToken && {'X-EBAY-API-IAF-TOKEN': accessToken})
})
});
}
Expand Down

0 comments on commit f24f24d

Please sign in to comment.