topical media & game development
server-webapi-code-09-simplerGetTime.php / php
<?php
function generateBody(attributes)
{
body .= "<{attributes AS value)
{
key xmlns:ns1=\"urn:ebay:apis:eBLBaseComponents\">
key>\n";
}
callName}Request>\n";
body;
}
function generateRequest(version, devID, cert, request = <<< XMLBLOCK
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<RequesterCredentials soapenv:mustUnderstand="0"
xmlns="urn:ebay:apis:eBLBaseComponents">
<eBayAuthToken>devID</ns:DevId>
<ns:AppId>cert</ns:AuthCert>
</ns:Credentials>
</RequesterCredentials>
</soapenv:Header>
request;
}
function newGetTime()
{
queryInfo = array();
myRequest = generateBody(queryInfo);
myRequest);
call, xml->GeteBayOfficialTimeResponse->Timestamp . "\n";
}
?>
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.