Converting a simple XML call into a service definition

88 views
Skip to first unread message

mike osterhout

unread,
Feb 4, 2013, 10:31:06 AM2/4/13
to guz...@googlegroups.com
I was able to get a simple XML call to the eBay api working like below. However I would like to take advantage of Guzzle service definitions but I am not sure how to do this correctly. I was wondering if anyone can supply the code to convert this into a successful service definition and call for our reference. 

$request = $client->post('', [
'X-EBAY-API-COMPATIBILITY-LEVEL' => '807',
'X-EBAY-API-DEV-NAME' => 'my-dev-name',
'X-EBAY-API-APP-NAME' => 'my-app-name',
'X-EBAY-API-CERT-NAME' => 'my-cert-name',
'X-EBAY-API-SITEID' => '0',
'X-EBAY-API-CALL-NAME' => 'GeteBayOfficialTime',
],
'<?xml version="1.0" encoding="utf-8"?>
<GeteBayOfficialTimeRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>AgAAAA**AQAAAA**</eBayAuthToken>
</RequesterCredentials>
</GeteBayOfficialTimeRequest>'
);

mike osterhout

unread,
Feb 4, 2013, 11:09:11 AM2/4/13
to guz...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages