Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Libraries

    eBay::API::XML::Session 0.22

    Download button

    No screenshots available
    Downloads: 390  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jeff Nokes | More programs
    Perl Artistic License / FREE
    October 4th, 2007, 04:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    eBay::API::XML::Session description

    eBay::API::XML::Session can cluster and submit several eBay XML API calls at once.

    eBay::API::XML::Session can cluster and submit several eBay XML API calls at once.

    This module collects multiple requests to the eBay XML API and submits them sequentially or in parallel. Session.pm uses the CPAN module, LWP::Parallel, to manage the parallel submission of HTTP requests to the eBay XML API.

    SYNOPSIS

    use eBay::API::XML::Call::GeteBayOfficialTime;
    use eBay::API::XML::Call::GetUser;
    use eBay::API::XML::DataType::Enum::DetailLevelCodeType;
    use eBay::API::XML::Call::GetSearchResults;
    use eBay::API::XML::DataType::PaginationType;
    use eBay::API::XML::Session;

    # Create a session (authorization info is pulled from ENV by the constructors)
    my $session = new eBay::API::XML::Session;

    # Get official time.
    my $pCall = eBay::API::XML::Call::GeteBayOfficialTime->new();
    $session->addRequest($pCall);

    # Get user details
    my $getUserCall = eBay::API::XML::Call::GetUser->new();
    $getUserCall->setDetailLevel( [eBay::API::XML::DataType::Enum::DetailLevelCodeType::ReturnAll] );
    $session->addRequest($getUserCall);

    # Get search results
    my $getListingsCall = new eBay::API::XML::Call::GetSearchResults;
    $getListingsCall->setQuery("new");
    my $pagination = new eBay::API::XML::DataType::PaginationType;
    $pagination->setEntriesPerPage(10);
    $getListingsCall->setPagination($pagination);
    $session->addRequest($getListingsCall);

    # session will submit the calls in parallel -- then wait til all come back
    $session->execute();

    # get results from various calls
    my $itemarray = $getListingsCall->getSearchResultItemArray()->getSearchResultItem();
    my $officialtime = $pCall->getEBayOfficialTime();
    my $pUser = $getUserCall->getUser();
    my $sStatusCode = $pUser->getStatus();
    my $sSiteCode = $pUser->getSite();

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    eBay XML API | eBay cluster | Perl module | eBay | XML | API



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM