Giter Club home page Giter Club logo

ebay-sdk-finding's Introduction

EBAY-SDK-FINDING

Build Status

This project enables PHP developers to use the eBay API in their PHP code, and build software using the Finding service. You can get started by installing the SDK via Composer and by following the Getting Started Guide.

Features

Resources

  • User Guides - Getting started guide and in-depth information.
  • SDK Versions - A complete list of each SDK, and the API version they support.
  • Sample Project - Provides 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.3.3 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.

  1. Install Composer.

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

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

    require 'vendor/autoload.php';

Example

Keyword search

<?php

require 'vendor/autoload.php';

use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Finding\Services;
use \DTS\eBaySDK\Finding\Types;

// Create the service object.
$service = new Services\FindingService(array(
    'appId' => 'YOUR_PRODUCTION_APPID_APPLICATION_KEY',
    'globalId' => Constants\GlobalIds::US
));

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

$request->keywords = 'Harry Potter';

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

// Output the result of calling the service operation.
foreach ($response->searchResult->item as $item) {
    printf("(%s) %s: %s %.2f\n",
        $item->itemId,
        $item->title,
        $item->sellingStatus->currentPrice->currencyId,
        $item->sellingStatus->currentPrice->value
    );
}

Project Goals

Project Maturity

This is a personal project that has been developed by me, David T. Sadler. I decided to create this project to make up for the lack of an official SDK for PHP. It is in no way endorsed, sponsored or maintained by eBay.

As this is a brand new project you should expect frequent releases until it reaches the stable 1.0.0 target. I will endeavour to keep changes to a minimum between each release and any changes will be documented.

License

Licensed under the Apache Public License 2.0.

Copyright 2014 David T. Sadler

ebay-sdk-finding's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.