These examples show how to use the eBay SDK for PHP with the Trading service.
-
A basic example that retrieves the official eBay system time in GMT. This is a good way of testing your production eBay authorization tokens as the call does not modify any user data.
-
Shows how to retrieve the category hierarchy for a site. More information can be found in the official eBay documentation.
-
An example that lists an auction item to the eBay sandbox. It shows how to do the following when listing an item.
- Specify the correct listing type.
- Set the starting price.
- Describe the item.
- Include a picture that will appear in the eBay gallery.
- Specify what eBay category the item will be listed in.
- State what payment methods are accepted.
- Specify both domestic and international shipping options.
- State what the return policy is.
This example does not show all the features that are available to sellers when listing. Other examples will instead focus on particular features.
-
An example that lists a fixed price item to the eBay sandbox. It shows how to do the following when listing an item.
- Specify the correct listing type.
- Set the item price.
- Accept best offers.
- Describe the item.
- Include a picture that will appear in the eBay gallery.
- Specify what eBay category the item will be listed in.
- State what payment methods are accepted.
- Specify both domestic and international shipping options.
- State what the return policy is.
This example does not show all the features that are available to sellers when listing. Other examples will instead focus on particular features.
-
Add an item with item specifics
Shows how to specify item specifics when adding an item.
-
Add an item with multiple variations
Shows how to specify multiple variations when adding an item.
-
Add an item with parts compatibility
Shows how to specify parts compatibility when adding an item.
-
Upload picture to eBay picture service
A simple example that shows how to upload a picture to the eBay picture service sandbox.
-
Download category item specifics
An example that downloads all the category item specifics for a site. What is particularly interesting about this example is that it requires the use of the File Transfer SDK.
-
Add fixed price item calculated shipping
An example that lists a fixed item with calculated shipping to the eBay sandbox.
-
An example that shows how to use the GetMyeBaySelling operation to return a list of actively selling items.
-
An example that first verifys a fixed price item before listing it to the eBay sandbox.
-
A simple example that returns basic information about a store and any custom categories that belongs to it.
-
Add eBay store category, Delete eBay store category, Move eBay store category, Move eBay store category to top, Rename eBay store category
Taken from the eBay examples that show how to manage your eBay store categories.
-
Shows how to revise an item.
-
Shows how to end an item.
-
Shows how to end several items in one operation.
-
Shows how to obtain feedback records.
-
Shows how to use add items.