question

davidtsadler avatar image
0 Likes"
davidtsadler asked

Support for RESTful services now in the eBay SDK for PHP.

If anyone is interested the SDK for PHP now supports eBay's new RESTful services. Below is a quick example of how you can use it to call an operation from the Browse service. ' ', 'marketplaceId' => Constants\GlobalIds::GB ]); $request = new Types\SearchForItemsRestRequest(); $request->q = 'Harry Potter'; $request->sort = '-price'; $request->limit = '10'; $request->offset = '0'; $response = $service->searchForItems($request); if ($response->getStatusCode() === 200) { foreach ($response->itemSummaries as $item) { printf( "(%s) %s: %s %.2f\n", $item->itemId, $item->title, $item->price->currency, $item->price->value ); } } The SDK is an open source project that enables PHP developers to use the eBay API in their projects. As of the yesterday's [8.0.0 release]( https://github.com/davidtsadler/ebay-sdk-php/releases/tag/8.0.0) it supports the following services: Account, Analytics, Browse, Bulk Data Exchange, Business Policies, Feedback, File Transfer, Finding, Fulfillment, Half Finding, Inventory, Marketing, Merchandising, Merchant Data, Metadata, Order, Post Order, Product, Product Metadata, Related Items Management, Resolution Case Management, Return Management, Shopping, Trading. - The SDK is available on [GitHub]( https://github.com/davidtsadler/ebay-sdk-php). - [User guides]( http://devbay.net/sdk/guides/) are available. - There is a [forum]( https://forum.devbay.net/c/php-sdk) for questions and discussions about the SDK. Please note that the SDK is in no way endorsed, sponsored or maintained by eBay, so don't pester their support regarding this. This is a personal project that has been developed by me, [David T. Sadler]( https://twitter.com/davidtsadler)
sdk
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.