eBay Trading API

 

How to run the samples :

AddDispute
AddDisputeResponse
AddItem
AddItem_advanced
AddItem_complex
AddLiveAuctionItem
AddToItemDescription
AddToWatchList
EndItem
GetAllBidders
GetApiAccessRules
GetAttributesCS
GetAttributeSet
GetAttributeSet_Rendered
GetAttributesXSL
GetBestOffers
GetBidderList
GetCategories
GetCategory2CS
GetCharities
GetDescriptionTemplates
GetDispute
GeteBayDetails
GeteBayDetails_2
GeteBayOfficialTime
GetFeedback
GetHighBidders
GetItem
GetItem_FeedExtension
  GetItem_OutputSelector
GetItemsAwaitingFeedback
GetItemShipping
GetItemTransactions
GetLiveAuctionBidders
GetMyeBayBuying
GetMyeBaySelling
GetMyMessages
GetOrders
GetPopularKeywords
GetProducts
GetSearchResults
GetSellerList
GetSellerTransactions
GetStore
GetStoreOptions
GetStorePreferences
GetSuggestedCategories
GetUser
GetUserPreferences
LeaveFeedback
PlaceOffer
RelistItem
RemoveFromWatchList
ReviseItem
SetStore
SetStorePreferences
UploadSiteHostedPictures
VerifyAddItem
Things related to the general setup:
  • All samples include the file "setincludepath.php" which configures the php include path to access to the EbatNs-toolkit files. You should change the file and make modifications which match your setup.
  • Many samples might need extra modifications as they refer to ItemIDs, TransactionIDs, etc. which might be already "been gone" when you try the sample. So please changes the input parameters for your needs.
    (Scripts like "GeteBayOfficialTime" do not need parameters, please try these first).
Things related to the eBay Developer Programm subscription:
  • Obtain your key-triple from developer.ebay.com
  • Open the config-files (ebay.config.sandbox.php or ebay.config.php)
    Edit keys either to dev-key-test, app-key-test and cert-id-test (for sandbox-access) or to the "-prod" fields for production-access.
    Be sure to quote (") the data to not mixup with php_ini_get.
  • Choose your primary site-id for the API calls and place it to "site-id = xxx"
  • Choose your environment (sandbox or production) by setting "app-mode"
  • In case of the trading API you will need a token!
    Goto the User Token Tool (Be sure to be logged on before !)
    Place the Token (copy & paste) to a file and specify it the token section of the config-file.
    BE SURE NOT HAVING ANYTHINGELSE THAN THE TOKEN in the file (so so extra whitespaces, breaks, etc.)
    The file-name in the config-file is relative to the scripts current directory (use an absolute path if you are not sure what we talking about here).