Coder Social home page Coder Social logo

uw-1's Introduction

UW-1

=============================

Prerequirements

  • ebaysdk==2.2.0
  • python-dotenv==0.19.2

Installation

git clone https://github.com/ilSerpente/UW-1.git

Setup tokens

  1. Move to project folder:
cd UW-1
  1. Open env_template file in any text editor and set tokens
  2. Rename file:
mv env_template .env

Running

Run script:

python3 ebay.py

Options

python3 ebay.py --help
Usage: ebay.py [options]

Options:
  -h, --help            show this help message and exit
  -d, --debug           Enabled debugging [default: False]
  -n DOMAIN, --domain=DOMAIN
                        Specifies the eBay domain to use (e.g.
                        api.sandbox.ebay.com).
  -a ACTION, --action=ACTION
                        Specifies action:
                        get_all_categories [CategorySiteID][LevelLimit]
                        get_category_specific_fields [CategoryID]
                        list_item (set item fields in item_template.py)
                        test_list_item (set item fields in item_template.py)

Logs

After execution a command you will receive path to file with execution result:

python3 ebay.py -a get_all_categories 100 1
Running GetCategories eBay request. With params:
 DetailLevel: ReturnAll
 CategorySiteID:  100
 LevelLimit':  1
Complet exucution log:  ./logs/get_all_categories_02_10_2022-16_34_57.json

Usage

  1. Get all categories, you can select eBay Global ID as first parameter and as second search depth in the category tree:
python3 ebay.py -a get_all_categories 2 1
  1. After execution open log file and search for needed category ID: alt text

  2. Get category specitic fields:

python3 ebay.py -a get_category_specific_fields 617
Running GetCategorySpecifics eBay request. With params:
 CategoryID:  617
Complet exucution log:  ./logs/get_category_specific_fields_02_10_2022-17_11_59.json
  1. Search for required fields in log file: alt text You have to find all fields with "UsageConstraint": "Required" and save their names ("Name": "Movie/TV Title") in item_template.py

  2. Adding fields: alt text

  3. Listing item test:

python3 ebay.py -a test_list_item
Running VerifyAddItem eBay request. With item_template
Complet exucution log:  ./logs/test_list_item_02_10_2022-17_22_13.json
  1. Real listing:
python3 ebay.py -a list_item 
Running AddItem eBay request. With item_template
Complet exucution log:  ./logs/get_item_02_10_2022-17_23_20.json

uw-1's People

Contributors

ilserpente 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.