Subversion Repositories cheapmusic

Rev

Rev 105 | Rev 110 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 105 Rev 109
Line 3... Line 3...
3
 
3
 
4
// Get eBay listings
4
// Get eBay listings
5
function get_ebay($query, $searchCondition) {
5
function get_ebay($query, $searchCondition) {
6
    $vendors = Vendors::getInstance();
6
    $vendors = Vendors::getInstance();
7
    $config = $vendors->getVendor(Vendors::EBAY);
7
    $config = $vendors->getVendor(Vendors::EBAY);
8
    $apiCall = '[cached]';
8
    $apicall = '[cached]';
9
 
9
 
10
    $resp = getSearchCache("ebay", $query, $searchCondition);
10
    $resp = getSearchCache("ebay", $query, $searchCondition);
11
    if ($resp === false) {
11
    if ($resp === false) {
12
        // API request variables
12
        // API request variables
13
        $endpoint = 'https://svcs.ebay.com/services/search/FindingService/v1';
13
        $endpoint = 'https://svcs.ebay.com/services/search/FindingService/v1';