What am i doing wrong ive tried to read it but i just want to grab the following information and save it in a database and i am needing this following information not sure where to find it
i need the following Listed Date,Ebay ID,Price of transaction Sold Date Buyername
If you are happy using Composer I have developed an SDK that allows you to integrate with the eBay Shopping API. A simple example based on your code is shown below. Note that depending on what you are trying to achieve you may also want to look at the Trading API that eBay provides. There is a SDK available for that as well.
require __DIR__.'/vendor/autoload.php';
use \DTS\eBaySDK\Shopping\Services;
use \DTS\eBaySDK\Shopping\Types;
$service = new Services\ShoppingService(array(
'apiVersion' => '897',
'appId' => $appid
));
$request = new Types\GetSingleItemRequestType();
/**
* Specify the item ID of the listing.
*/
$request->ItemID = '111111111111';
$request->IncludeSelector = 'Details';
$response = $service->getSingleItem($request);
if ($response->Ack !== 'Failure') {
$item = $response->Item;
print("$item->Title\n");
printf("Quantity sold %s, quantiy available %s\n",
$item->QuantitySold,
$item->Quantity - $item->QuantitySold
);
}