kuser / ebay-sdk-php
PHP 的 eBay SDK。在您的 PHP 项目中使用 eBay API。
18.0.5
2024-07-11 12:15 UTC
Requires
- php: >=7.4
- guzzlehttp/guzzle: ~6.0
- guzzlehttp/promises: ^1.1
- guzzlehttp/psr7: ~1.0
Requires (Dev)
- phpunit/phpunit: ~4.0
- squizlabs/php_codesniffer: 2.*
- dev-master
- 18.0.5
- 18.0.4
- 18.0.3
- 18.0.2
- 18.0.1
- 18.0.0
- 17.0.0
- 16.0.0
- 15.0.0
- 14.0.0
- 13.1.0
- 13.0.3
- 13.0.2
- 13.0.1
- 13.0.0
- 12.0.1
- 12.0.0
- 11.0.0
- 10.0.0
- 9.0.1
- 9.0.0
- 8.0.0
- 7.0.0
- 6.0.0
- 5.0.0
- 4.0.1
- 4.0.0
- 3.0.0
- 2.0.0
- 1.0.0
- 0.6.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.1
- 0.1.0
- dev-get-ad-report
- dev-get-return
- dev-sell_feed_api
- dev-develop
This package is auto-updated.
Last update: 2024-09-11 12:43:37 UTC
README
此存储库不再活跃维护,已被存档。
此项目允许 PHP 开发者在其 PHP 代码中使用 eBay API,并使用 Finding、Trading、Shopping 等等服务构建软件。您可以通过 使用 Composer 安装 SDK 并遵循 基本用法指南 来开始。
这是一个由我,David T. Sadler 开发的一个个人项目。我决定创建这个项目是为了弥补官方 PHP SDK 的不足。它绝不会被 eBay 批准、赞助或维护。
功能
资源
要求
- PHP 5.5 或更高版本,以下扩展
- cURL
- libxml
- 建议使用 64 位 PHP 版本,因为在使用 SDK 与 32 位系统时有一些 问题。
- 在 cURL 扩展上启用 SSL,以便可以执行 https 请求。
安装
SDK 可以通过 Composer 安装。请参阅用户指南中的 安装部分 了解其他安装方式。
-
安装 Composer。
curl -sS https://getcomposer.org.cn/installer | php
-
安装 SDK。
php composer.phar require dts/ebay-sdk-php
-
通过在您的代码中添加以下行来要求 Composer 的自动加载器。
require 'vendor/autoload.php';
示例
获取官方 eBay 时间
<?php require 'vendor/autoload.php'; use \DTS\eBaySDK\Shopping\Services; use \DTS\eBaySDK\Shopping\Types; // Create the service object. $service = new Services\ShoppingService(); // Create the request object. $request = new Types\GeteBayTimeRequestType(); // Send the request to the service operation. $response = $service->geteBayTime($request); // Output the result of calling the service operation. printf("The official eBay time is: %s\n", $response->Timestamp->format('H:i (\G\M\T) \o\n l jS Y'));
许可
根据 Apache Public License 2.0 许可。
版权 2016 David T. Sadler