Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
Unsinn. Die eBay-API ist ausreichend dokumentiert. Als Primärquelle sei das PHP Developer Center genannt.Das Problem ist nun nur meine Ebay API, denn es gibt keine Dokumentation oder Scripte zu diesem Thema
<?php
error_reporting(E_ALL); // turn on all errors, warnings and notices for easier debugging
$query = 'ipod'; // A query
$SafeQuery = urlencode($query);
$endpoint = 'http://open.api.ebay.com/shopping'; // URL to call
$responseEncoding = 'XML'; // Format of the response
// Construct the FindItems call
$apicall = "$endpoint?callname=FindItems&version=517&siteid=0&appid=MyAppID&QueryKeywords=$SafeQuery&responseencoding=$responseEncoding";
// Load the call and capture the document returned by the Shopping API
$resp = simplexml_load_file($apicall);
// Check to see if the response was loaded, else print an error
if ($resp) {
$results = '';
// If the response was loaded, parse it and build links
foreach($resp->Item as $item) {
$link = $item->ViewItemURLForNaturalSearch;
$title = $item->Title;
// For each result node, build a link and append it to $results
$results .= "<a href=\"$link\">$title</a><br/>";
}
}
// If there was no response, print an error
else {
$results = "Oops! Must not have gotten the response!";
}
?>
<html>
<head>
<title>
eBay Search Results for <?php echo $query; ?>
</title>
</head>
<body>
<h1>eBay Search Results</h1>
<?php echo $results;?>
</body>
</html>
object(SimpleXMLElement)[1]
public 'Timestamp' => string '2008-02-12T15:17:08.018Z' (length=24)
public 'Ack' => string 'Failure' (length=7)
public 'Errors' =>
object(SimpleXMLElement)[2]
public 'ShortMessage' => string 'Application ID invalid.' (length=23)
public 'LongMessage' => string 'Application ID invalid.' (length=23)
public 'ErrorCode' => string '1.20' (length=4)
public 'SeverityCode' => string 'Error' (length=5)
public 'ErrorClassification' => string 'RequestError' (length=12)
public 'Build' => string 'e549_core_Bundled_5967797_R1' (length=28)
public 'Version' => string '549' (length=3)