topical media & game development
server-webapi-code-09-getTime.php / php
<?php
function calleBay(request, appID, endPoint;
endPoint?callname=appID
&version=length = strlen(headers = array();
headers[] = "Content-Type: text/xml";
length";
As mentioned earlier several of the request parameters will be passed in the get line, the endpoint for the request is generated, including the name request being made, and some specifics about the application making the request.
ch, CURLOPT_URL, ch, CURLOPT_HEADER, false);
curl_setopt(headers);
curl_setopt(ch, CURLOPT_POSTFIELDS, ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt(ch, CURLOPT_SSL_VERIFYPEER, false);
ch);
curl_close(returnRAW == TRUE)
{
return xml = simplexml_load_string(newXML = newXML;
}
}
function getSimpleTime()
{
global devID, cert, call = "GeteBayOfficialTime";
token</eBayAuthToken>
<ns:Credentials xmlns:ns="urn:ebay:apis:eBLBaseComponents">
<ns:DevId>appID</ns:AppId>
<ns:AuthCert>version</ns1:Version>
</GeteBayOfficialTimeRequest>
</soapenv:Body>
</soapenv:Envelope>
XMLBLOCK;
call, xml = simplexml_load_string(xml);
echo "Time: " .
(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.