question

waynow66 avatar image
0 Likes"
waynow66 asked

4am, still not able to get first call

Can anyone point the way to the real documentation about making a first call? Everything I've read online here at eBay has led me in circles. I'm using basic Internet technologies. I tried the Javascript example exactly as layed out and I get 404 errors. I just want to make my very first call using Javascript. Ive tried using fetch, axios, jsonp, I'm not sure if Im structuring any of this right because nothing works. I've read all the documentation 4-5 times for the past few hours. I just want to connect a basic website (Vue platform = Javascript) and find an item. Are there any developers that can throw me a basic newbie bone here. What's the secret code here? Thank you!!!
404 error
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vertika_developersupport avatar image
0 Likes"
vertika_developersupport answered
Hi @waynow66, For making your very first eBay API call please go through the given doc. REF: https://developer.ebay.com/api-docs/static/make-a-call.html Best Regards, eBay Developer Support
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

waynow66 avatar image
0 Likes"
waynow66 answered
Thank you, vertika_developersupport. That got me pointed in the right direction. For others using Vue, I used the following code in the mounted() callback to retrieve results successfully: var url= " https://api.ebay.com/buy/browse/v1/item_summary/search?q=phones" const config = { method: 'get', url: url, headers: { 'Authorization': 'Bearer <your oauth token>', } } let res = await axios(config) console.log((res.request._header)) res.data.itemSummaries.forEach((item) => { console.log(item) })
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0pilo avatar image
0 Likes"
0pilo answered

Checkout https://github.com/hendt/ebay-api library it has an example that works in browser: https://hendt.github.io/ebay-api


10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.