Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<?php
if (!isset($_GET["status"])) {
header("Location: https://signin.ebay.com/authorize?client_id=UweJacob-MUNATrad-PRD-d132041a0-85284729&redirect_uri=Uwe_Jacobs-UweJacob-MUNATr-jwkrg&response_type=code&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.marketing");
exit;
} else if ($_GET["status"] == "accepted") {
echo '<h2>Accepted</h2>';
printKeyValues($_GET);
echo '<script type="text/javascript">setTimeout( function() { window.close(); }, 5000);</script>';
exit;
} else if ($_GET["status"] == "declined") {
echo '<h2>Declined</h2>';
printKeyValues($_GET);
echo '<script type="text/javascript">setTimeout( function() { window.close(); }, 5000);</script>';
exit;
}
function printKeyValues($keyValues) {
foreach($keyValues as $key => $value) {
echo '<p>' . $key . ': ' . $value . '</p>';
}
}
?>