Comments (4)
I think you need to do eBay.sell.account.getPrivileges()
from ebay-api.
Thanks olliechick.
I got a different result after making the change.
However, it resulted in a new error:
data:
{ error: 'invalid_scope',
error_description:
'The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client' } },
I checked the getPrivileges ebay documentation and it says to use these oAuth scopes, which I thought I had done:
https://api.ebay.com/oauth/api_scope/sell.account
https://api.ebay.com/oauth/api_scope/sell.account.readonly
In fact, when double checking, I have done this now but it still gives error that requested scope is invalid...
:
eBay.auth.oAuth2.setScope([
'https://api.ebay.com/oauth/api_scope',
'https://api.ebay.com/oauth/api_scope/sell.account',
'https://api.ebay.com/oauth/api_scope/sell.account.readonly'
]);
Were you able to successfully make this call before? If so, please share how. Thank you!
from ebay-api.
Nevermind, I solved it another way...
exports.getSellerLimits = async (req, res) => {
let {
ebayAuthToken,
} = req.body
if(ebayAuthToken == null) {
res.status(400).json({error: `Missing ebay auth token. Please try again with ebay auth token.`})
}
let result = await fetch(
`https://api.ebay.com/sell/account/v1/privilege`,
{
method: "GET",
headers: {
Authorization: `Bearer ${ebayAuthToken}`,
Accept: "application/json",
"Content-Type": "application/json"
}
}
)
let sellerPrivileges = await result.json()
res.json(sellerPrivileges)
}
from ebay-api.
@olliechick has the correct answer. Check out the example: https://github.com/hendt/ebay-api/blob/next/examples/restful/sell/getPrivileges.ts
from ebay-api.
Related Issues (20)
- use the Axios interceptor to manipulate the response
- Feature Request: Digital Signatures for APIs HOT 8
- I'm not getting itemAffiliateWebUrl from eBay.buy.browse.search HOT 2
- eBay Marketplace Account Deletion/Closure Notifications Workflow HOT 3
- I
- Inventory API > bulkMigrateListings call - Invalid value for header Accept-Language. HOT 1
- Unable to find the Account API call "getAdvertisingEligibility" HOT 2
- Can't find getAdGroups in the Marketing API calls HOT 1
- FindProducts in shopping API always returns "No Match Found" HOT 2
- createOrReplaceInventoryItem of Inventory API is not updating title, returns empty string
- Error when calling getResultFile HOT 3
- How to get rlogid from getInventoryItem call in Inventory API HOT 5
- Unable to filter using sell.fulfillment.getOrders
- GetSellerDashboard constantly returns error HOT 1
- Access token is not being refreshed by 403s on inventory item endpoint HOT 1
- Switching from axios to unjs/ofetch HOT 1
- Unable to compile ebay-api in react project HOT 1
- "could not be found or is not available in the system for the marketplace EBAY_AU" HOT 1
- listingStartDate not on type EbayOfferDetailsWithId HOT 6
- aspects in InventoryItem is now just a string HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ebay-api.