eBay Developers Program
  • Forums Sign in
  • My Account
    • My Developer Account
    • Solutions Directory
    • Applications Settings
  • Forums
    • Orders, Returns and Feedback
    • Java SDK for Trading API
    • Search
    • Selling
    • Talk to Your Fellow Devs
    • .Net SDK for Trading API
    • Tokens, Notifications, Messages
    • Feedback & Suggestions
  • Documentation
    • Release Notes
    • Finding API
    • Shopping API
    • Trading API
    • Large Merchant Services
    • Marketing Handbook
    • All Features Comparison
    • All API Documentation
  • Support
    • eBay SDKs
    • API Site Status
    • Program & News Blog
    • Compatible Application Check
    • Support Ticket
    • Knowledge Base
    • Developer Help Center
    • Search Details
  • Home
  • eBay Forums
  • eBay APIs: Search /
avatar image

Question by thevinylhub · May 11, 2015 at 12:33 AM · ebayPHPebay-api

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

People who like this

0
Comment
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

5 Replies

· Add your reply
  • Sort: 
avatar image

Answer by clickimusprime · May 11, 2015 at 06:13 AM

You can't inject PHP into eBay's pages. You can use limited Javascript depends on what the site supports.

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by helios825 · May 11, 2015 at 10:11 AM

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.

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by thevinylhub · May 11, 2015 at 06:21 PM

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.

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by clickimusprime · May 11, 2015 at 07:08 PM

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

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by thevinylhub · May 11, 2015 at 07:56 PM

Hi clickprime thanks for that I will give it a try now

Comment

People who like this

0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

15 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to get count results and remove limit 100? -1 Answers

How to remove query limit and print count results? 1 Answer

How to fetch all product categories using ebay api 1 Answer

[PHP] API Development requirements 1 Answer

Unable to receive payments 1 Answer


Support

Developer Help Center
eBay Developers Program Blog
API Site Status
Request Support
Knowledge Base
Developer Forums
eBay Software Development Kits

API Information

API License Agreement
API Documentation
API Call Limits
Marketing Handbook
API Features Comparison

Apps Center

Applications Directory
Solutions Directory

Social Media

     

Programs

About Us
Success Stories
Affiliate Developers
eBay Market Data Program
Developer Directory
Developer Jobs
Copyright 1999 - 2019 eBay Inc. All rights reserved. User Agreement | Privacy Policy.    Site Feedback
  • Anonymous
  • Login with eBay
  • Create
  • Ask a question
  • Forums
  • Buy APIs (BETA) - Browse
  • Buy APIs (BETA) - Order
  • Feedback, Comments, Suggestions
  • New Sell APIs - Account, Inventory, Catalog and Compliance
  • New Sell APIs - Fulfillment
  • New Sell APIs - Marketing, Analytics, Metadata
  • Post Order APIs - Cancellation
  • Post Order APIs - Inquiry, Case Management
  • Post Order APIs - Return
  • Talk to your fellow developers
  • Token, Messaging, Sandbox related issues
  • eBay APIs: .NET SDK for Trading API
  • eBay APIs: Java SDK for Trading API
  • eBay APIs: Orders, resolutions and feedback
  • eBay APIs: Search
  • eBay APIs: Selling
  • Explore
  • Tags
  • Questions
  • Users
  • Badges