question

thevinylhub avatar image
0 Likes"
thevinylhub asked ·

Implementing API in ebay live listing template

I have finally mastered the ebay finding api call using php but am stumped on actually implementing it into ebay itself, I just can find any information on using the calls live within the site any pointers would really be appreciated. thanks
ebay-apiebayPHP
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.

thevinylhub avatar image
0 Likes"
thevinylhub answered ·
Hi clickprime thanks for that I will give it a try now
· Share
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.

clickimusprime avatar image
0 Likes"
clickimusprime answered ·
**I have seen listings using js to link to a php page I have tried this using doc write function in php to no avail im completely stumped but thanks for the replies.** A typical model would be: include JS in the page. The JS does Ajax calls to your server where a PHP script handles the requests and returns data/HTML to the JS. The JS receives, formats and displays the results. Trying to use document.write in PHP (which doesn't exist) in not a valid approach. some examples here: http://stackoverflow.com/questions/1280767/how-do-i-run-php-code-when-a-user-clicks-on-a-link
· Share
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.

thevinylhub avatar image
0 Likes"
thevinylhub answered ·
I have seen listings using js to link to a php page I have tried this using doc write function in php to no avail im completely stumped but thanks for the replies.
· Share
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.

helios825 avatar image
0 Likes"
helios825 answered ·
I agree with clickprime. While I'm no JS expert, it would be my guess that you'd need to use JS in some form within eBay pages to display data returned from the eBay API. And to hide your AppID there, you'd probably want to setup a server on your end to act as a proxy to relay requests from the JavaScript in the listings on to the eBay API. That way you could keep your AppID and related keys/tokens private on your server-side, while still serving the JS client software you write. You'd also want to implement some amount of intermediary monitoring and security layers at your server, so you don't relay each and every proxy call to API, opening your eBay Dev account to vicarious abuse. You'd want to cache data, block certain bots and other user-agents, perhaps throttle request by time window and IP address, etc.
· Share
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.

clickimusprime avatar image
0 Likes"
clickimusprime answered ·
You can't inject PHP into eBay's pages. You can use limited Javascript depends on what the site supports.
· Share
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.