Git Product home page Git Product logo

ebaytests's Introduction

README for eBayTests

This is the samples for using eBay API during auctions

Installing

Install the newest version from github:

git clone https://github.com/wws22/eBayTests.git

Briefing

Create your own .eBay.conf file as described in EbayConfig.pm

It was looked like:

use strict;
use warnings;
#
our $API_COMPATIBILITY_LEVEL = '1031';
our $MY_PUBLIC_IP = 'XXX.XXX.XXX.XXX';  # The public IP address of the machine from which the request is sent.
                                        # Your application captures that IP address and includes it in a call request.
                                        # eBay evaluates requests for safety (also see the BotBlock container
                                        # in the request and response of this call).
#
our $SIGNIN_ENDPOINT = 'https://signin.sandbox.ebay.com/ws/eBayISAPI.dll';
our $API_ENDPOINT = 'https://api.sandbox.ebay.com/ws/api.dll';
our %LWP_OPT = ( ssl_opts => { verify_hostname => 0 }, # Use 0 for sandbox
                 agent => 'MyApp/0.1'                  # User-Agent string
);
our $SITEID = '0';
our $RUNAME = 'Vicx-Vicxxx-AppName-XXXX';
our $APP_NAME ='VictorS-MyAppNam-SBX-XXXXX-XXXXX';
our $DEV_NAME='XXXX-XXXX-XXXX-XX-XXXXXXXXX';
our $CERT_NAME = 'SBX-XXXXXXXXXXXX-XXXX-XXXX-XXXX-XXXX';
our $MAIN_TOKEN = 'AgAAAA**A ... PFK1PQ5J1SF';

Put your credential in each line. Check up which URLs You would like to use: 'sandbox' or '' for the production. You have to use different credentials for the sandbox and production environment.

Use the scripts:

getsessionid.pl

Log in as the buyer by given URL and fetch the token:

fetchtoken.pl <Session_ID>

Your token will be stored in the .user_token file. The good idea is to do a copy of the user's token file to .user_token1, .user_token2 etc You can repeat steps get session and fetch token for the different users as many times as You wish. For a change the bidder, You have to copy actual user's token into .user_token file.

Make a bid through:

placeoffer.pl <ItemID> <MaxBid> [CurrencyID]

Check the status of your bid:

getitemstatus.pl

Authors and contact info

Victor Selukov <victor [dot] selukov [at] gmail.com>

ebaytests's People

Contributors

wws22 avatar

Watchers

James Cloos 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.