Skip to content

Instantly share code, notes, and snippets.

@davidtsadler
davidtsadler / lms_upload_file.php
Created November 8, 2012 21:56
eBay LMS uploadFile API example
<?php
/*
* This is an edited version of the code found at https://www.x.com/developers/ebay/forums/ebay-apis-talk-your-fellow-developers/ebay-lms-uploadfile-api-not-working-please-help
*
*/
/*
* Replace the values for the following variables with your own.
@davidtsadler
davidtsadler / check_requirements.php
Last active December 10, 2015 07:08
Example requirements checker for using Bigcommerce PHP client found at https://github.com/bigcommerce/bigcommerce-api-php It can be executed via the command line or uploaded to a web server.
<?php
$fail = array();
$pass = array();
if (version_compare(phpversion(), '5.2.4', '<')) {
$fail[] = 'You need PHP 5.2.4 or greater';
}
else {
$pass[] = 'You have PHP 5.2.4 or greater';
@davidtsadler
davidtsadler / add_item.php
Last active June 14, 2022 00:13
Example showing how to list an item to the eBay Sandbox using the eBay Accelerator Toolkit New Schema (EbatNS) for PHP.
<?php
/*
* Author: David T. Sadler (http://davidtsadler.com)
* Date: 2013-03-29
* License: I release this example into the public domain. Use at your own risk.
*
* Example showing how to list an item to the eBay Sandbox using the eBay Accelerator Toolkit New Schema (EbatNS) for PHP.
*
* This example uses version 815 released on the 2013-03-22.
* http://www.intradesys.de/en/system/files/its_downloads/EbatNs_1_0_815_P5_0.zip
@davidtsadler
davidtsadler / finding.py
Last active February 19, 2024 03:06
A very simple example showing how to make an eBay Finding API request with the ebaysdk-python (https://github.com/timotheus/ebaysdk-python). The example will do a keyword search for 'laptops' across the UK eBay site and restrict the search to the two categories Apple Laptops(111422) and PC Laptops & Netbooks(177). In addition the results are fil…
import ebaysdk
from ebaysdk import finding
api = finding(siteid='EBAY-GB', appid='<REPLACE WITH YOUR OWN APPID>')
api.execute('findItemsAdvanced', {
'keywords': 'laptop',
'categoryId' : ['177', '111422'],
'itemFilter': [
{'name': 'Condition', 'value': 'Used'},
@davidtsadler
davidtsadler / get_ebay_details.php
Created August 15, 2014 11:51
GeteBayDetails example.
<?php
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
$sites = array(
array('id' => Constants\SiteIds::US, 'name' => 'United States'),
array('id' => Constants\SiteIds::ENCA, 'name' => 'Canada (English)'),
<?php
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
use \DTS\eBaySDK\Trading\Enums;
$service = new Services\TradingService(array(
'apiVersion' => '941',
<?php
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
use \DTS\eBaySDK\Trading\Enums;
$service = new Services\TradingService(array(
'apiVersion' => '941',
<?php
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
use \DTS\eBaySDK\Trading\Enums;
$service = new Services\TradingService(array(
'apiVersion' => '941',
<?php
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
use \DTS\eBaySDK\Trading\Enums;
$service = new Services\TradingService(array(
'apiVersion' => '941',
<?php
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Constants;
use \DTS\eBaySDK\Trading\Services;
use \DTS\eBaySDK\Trading\Types;
use \DTS\eBaySDK\Trading\Enums;
$service = new Services\TradingService(array(
'apiVersion' => '941',