PHP code example of ateliee / yahoo-api

1. Go to this page and download the library: Download ateliee/yahoo-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ateliee / yahoo-api example snippets


use YahooAPI\Auctions;
...

$auctions = new Auctions('appid','secret key');

$categorys = $auctions->request('categoryTree');
$leaf = $auctions->request('categoryLeaf',array('category' => '2084055844'));
$selling = $auctions->request('sellingList',array('sellerID' => '****'));
$search = $auctions->request('search',array('query' => '****'));
$item = $auctions->request('auctionItem',array('auctionID' => '****'));