Skip to content

Latest commit

 

History

History
90 lines (57 loc) · 3.01 KB

README_origin.md

File metadata and controls

90 lines (57 loc) · 3.01 KB

EBAY-SDK-PHP

Build Status

NOTICE:

This project build on davidtsadler/ebay-sdk-php .Because the original project is dead,so I create this new project.This project is not compatible with original project.

Features

Resources

  • User Guides - Getting started guide and in-depth information.
  • Examples - Several examples of using the SDK.
  • Google Group - Join for support with the SDK.
  • @devbaydotnet - Follow on Twitter for announcements of releases, important changes and so on.

Requirements

  • PHP 5.5 or greater with the following extensions:
    • cURL
    • libxml
  • 64 bit version of PHP recommended as there are some issues when using the SDK with 32 bit.
  • SSL enabled on the cURL extension so that https requests can be made.

Installation

The SDK can be installed with Composer. Please see the Installation section of the User Guide to learn about installing through other means.

  1. Install Composer.

    curl -sS https://getcomposer.org/installer | php
    
  2. Install the SDK.

    php composer.phar require dts/ebay-sdk-php
    
  3. Require Composer's autoloader by adding the following line to your code.

    require 'vendor/autoload.php';

Example

Get the official eBay time

<?php

require 'vendor/autoload.php';

use \DTS\eBaySDK\Shopping\Services;
use \DTS\eBaySDK\Shopping\Types;

// Create the service object.
$service = new Services\ShoppingService();

// Create the request object.
$request = new Types\GeteBayTimeRequestType();

// Send the request to the service operation.
$response = $service->geteBayTime($request);

// Output the result of calling the service operation.
printf("The official eBay time is: %s\n", $response->Timestamp->format('H:i (\G\M\T) \o\n l jS Y'));

Project Goals

License

Licensed under the Apache Public License 2.0.

Copyright 2016 David T. Sadler