| Line 7... |
Line 7... |
| 7 |
function get_ebay($query, $searchType)
|
7 |
function get_ebay($query, $searchType)
|
| 8 |
{
|
8 |
{
|
| 9 |
// API request variables
|
9 |
// API request variables
|
| 10 |
$endpoint = 'http://svcs.ebay.com/services/search/FindingService/v1';
|
10 |
$endpoint = 'http://svcs.ebay.com/services/search/FindingService/v1';
|
| 11 |
$version = '1.13.0';
|
11 |
$version = '1.13.0';
|
| 12 |
$appid = 'UweJacob-MusicCDs-PRD-0eaa5c961-9b7ca596';
|
12 |
$appid = 'UweJacob-MusicCDs-PRD-0eaa5c961-9b7ca596'; // BUGBUG put in ini file
|
| 13 |
$trackingId = '5338527412'; // EPN Campaign Id
|
13 |
$trackingId = '5338527412'; // EPN Campaign Id // BUGBUG put in ini file
|
| 14 |
$globalid = 'EBAY-US';
|
14 |
$globalid = 'EBAY-US';
|
| 15 |
$safequery = urlencode($query); // Make the query URL-friendly
|
15 |
$safequery = urlencode($query); // Make the query URL-friendly
|
| 16 |
$numResults = 20; // Maximum Number of Search Results
|
16 |
$numResults = 20; // Maximum Number of Search Results
|
| 17 |
|
17 |
|
| 18 |
// Create a PHP array of the item filters you want to use in your request
|
18 |
// Create a PHP array of the item filters you want to use in your request
|