/eBayRePricingApiClientPHP

PHP API Client for our ebay RePricing

Primary LanguagePHP

eSaguEBayRePricingAPIV1

eSagu API to reprice items on ebay.

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 1.2.14
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.4.0 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/e-sagu/ebay-re-pricing-api-client-php.git"
    }
  ],
  "require": {
    "e-sagu/ebay-re-pricing-api-client-php": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/eSaguEBayRePricingAPIV1/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: jwt
eSagu\EBay\RePricing\V1\Configuration::getDefaultConfiguration()->setApiKey('Authorization', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// eSagu\EBay\RePricing\V1\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Authorization', 'Bearer');

$api_instance = new eSagu\EBay\RePricing\V1\Api\BulkEditApi();
$bulk_edit_id = 789; // int | 

try {
    $result = $api_instance->get6($bulk_edit_id);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling BulkEditApi->get6: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://api.esagu.de/ebay/repricing/v1

Class Method HTTP request Description
BulkEditApi get6 GET /bulk-edit/{bulkEditId} Get a single bulk edit specified by it's id.
BulkEditApi list1 GET /bulk-edit Get a list of all bulk edits.
BulkEditApi post3 POST /bulk-edit Creates a new bulk edit.
CSVImportApi get7 GET /csv-import/{csvImportId} Get the specified single CSV Import for given user service.
CSVImportApi list2 GET /csv-import Get a list of all CSV Imports for given user service.
CSVImportApi post4 POST /csv-import Creates a new CSV Import.
CSVRequestApi get9 GET /csv-request/{csvRequestId} Get a single CSV Request.
CSVRequestApi list4 GET /csv-request Get a list of all CSV Requests for given user service.
CSVRequestApi post6 POST /csv-request Creates a new CSV Request.
CSVRequestPresetApi delete1 DELETE /csv-request/preset/{csvRequestPresetId} Deletes a CSV Preset specified by it's id.
CSVRequestPresetApi get8 GET /csv-request/preset/{csvRequestPresetId} Get a single CSV request preset specified by it's id.
CSVRequestPresetApi list3 GET /csv-request/preset Get a list of all CSV request presets for given user service.
CSVRequestPresetApi post5 POST /csv-request/preset Creates a new CSV Preset.
CSVRequestPresetApi put3 PUT /csv-request/preset/{csvRequestPresetId} Updates a CSV Preset specified by it's id.
CustomCodeApi get10 GET /custom-code/{customCodeId} Get a single CustomCode specified by it's id..
CustomCodeApi list5 GET /custom-code Get a list of all CustomCodes items.
FindingAPIFilterApi delete3 DELETE /finding-api-filter/{findingAPIFilterId} Deletes a FindingAPIFilter specified by it's id.
FindingAPIFilterApi get11 GET /finding-api-filter/{findingAPIFilterId} Get a single FindingAPIFilter specified by it's id.
FindingAPIFilterApi list6 GET /finding-api-filter Get a list of all FindingAPIFilters.
FindingAPIFilterApi post8 POST /finding-api-filter Creates a new FindingAPIFilter.
FindingAPIFilterApi put5 PUT /finding-api-filter/{findingAPIFilterId} Updates a FindingAPIFilter specified by it's id.
ItemApi get12 GET /item/{itemId} Get a single repricing Item.
ItemApi list7 GET /item Gets a list of repricing items.
ItemStrategyApi get13 GET /item/{itemId}/strategy Gets the item's strategy settings specified by the repricing item id.
ItemStrategyApi put6 PUT /item/{itemId}/strategy Creates or updates the item's strategy settings.
NewItemBulkEditApi get14 GET /new-item-bulk-edit Get the new item bulk edit settings.
NewItemBulkEditApi post9 POST /new-item-bulk-edit Creates the new item bulk edit settings if empty.
NewItemBulkEditApi put7 PUT /new-item-bulk-edit Edits the new item bulk edit settings.
OrderHistoryApi get15 GET /order-history Gets the order statistics of the last days.
PriceGapsApi delete4 DELETE /price-gaps/{priceGapId} Deletes a PriceGap item.
PriceGapsApi get16 GET /price-gaps/{priceGapId} Get a single PriceGap item.
PriceGapsApi list8 GET /price-gaps Get a list of all PriceGaps items.
PriceGapsApi post10 POST /price-gaps Creates a new PriceGap item.
PriceGapsApi put8 PUT /price-gaps/{priceGapId} Updates a PriceGap item.
RepricingItemHistoryApi priceOptimization GET /item/{itemId}/history/price-optimization Gets a history of price optimizations for a given item.
SearchTermAiApi get19 GET /search-term-stop-ai Get the search term ai object.
SearchTermAiApi post11 POST /search-term-stop-ai Creates new search term ai object if empty.
SearchTermAiApi put10 PUT /search-term-stop-ai Edits search term ai object.
SearchTermStopWordsApi get20 GET /search-term-stop-words Get the search term stop words.
SearchTermStopWordsApi post12 POST /search-term-stop-words Creates new search term stop words if empty.
SearchTermStopWordsApi put11 PUT /search-term-stop-words Edits search term stop words.
SettingsApi get21 GET /settings Gets the repricing settings.
SettingsApi post13 POST /settings Adds new repricing settings if not exists.
SettingsApi put12 PUT /settings Edit the repricing settings.

Documentation For Models

Documentation For Authorization

jwt

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Author