Skip to content

haykhov/ebay

Repository files navigation

EBAY-SDK-EXAMPLES

This project contains serveral examples of using the eBay SDK for PHP.

Requirements

  • PHP 5.3.3 or greater with the following extensions:
    • cURL
    • libxml
  • SSL enabled on the cURL extension so that https requests can be made.

Installation

  1. Download the project.

    git clone https://github.com/davidtsadler/ebay-sdk-examples.git
    
  2. From the ebay-sdk-examples directory install Composer with:

    curl -sS https://getcomposer.org/installer | php
    
  3. Install the dependencies.

    php composer.phar install
    

Configuration

All the examples load configuration settings from a configuration.php file located in the root of the project directory. This file can be created by running the following command inside the ebay-sdk-examples directory:

cp configuration.php.example configuration.php

Edit the resulting configuration.php file and specify your eBay application keys. Ensure that you enter values for both the sandbox and production enviroments. A guide is available to help get your application keys.

Be careful not to commit the configuration.php file into an SCM repository as you risk exposing your eBay application keys to more people than intended.

Examples

There are several examples for each service that the SDK supports and they are listed in the README file for each service.

  1. Finding

  2. Trading

  3. Shopping

  4. Business Policies Management

  5. Large Merchange Services

  6. Half Finding

  7. Resolution Case Management

  8. Misc

To run an example from the command line use the php command followed by the name of the example file.

php finding/01-simple-keywords-search.php

License

Copyright 2014 David T. Sadler

Licensed under the Apache Public License 2.0.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages