conviu / kaufland-seller-api
这是 Kaufland.de 卖家 API v2。更多信息请访问 [https://sellerapi.kaufland.com/](https://sellerapi.kaufland.com/)
dev-main
2024-05-23 17:40 UTC
Requires
- php: ^8.3
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/psr7: ^1.8 || ^2.0
- php-http/async-client-implementation: ^1.0
- php-http/client-common: ^2.4
- php-http/discovery: ^1.14
- php-http/httplug: ^2.2
- psr/http-client-implementation: ^1.0
- psr/http-factory: ^1.0
- psr/http-factory-implementation: ^1.0
- psr/http-message: ^1.0 || 2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.54
- guzzlehttp/guzzle: ^7.0
- php-http/guzzle7-adapter: ^1.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-09-23 18:19:41 UTC
README
这是 Kaufland.de 卖家 API v2。更多信息请访问 https://sellerapi.kaufland.com/
安装与使用
需求
PHP 7.2 及以上版本。
Composer
要通过 Composer 安装绑定,请在 composer.json
中添加以下内容
{ "repositories": [ { "type": "vcs", "url": "https://github.com/conviu/kaufland-seller-api.git" } ], "require": { "conviu/kaufland-seller-api": "*@dev" } }
然后运行 composer install
您的项目可以自由选择所需的 HTTP 客户端,请要求提供 HTTP 客户端功能的包: https://packagist.org.cn/providers/psr/http-client-implementation https://packagist.org.cn/providers/php-http/async-client-implementation https://packagist.org.cn/providers/psr/http-factory-implementation
例如
composer require guzzlehttp/guzzle php-http/guzzle7-adapter http-interop/http-factory-guzzle
手动安装
下载文件并包含 autoload.php
<?php require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');
入门指南
请按照 安装过程 进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); $apiInstance = new KauflandSellerApi\Api\AttributesApi( // If you want use custom http client, pass your client which implements `Psr\Http\Client\ClientInterface`. // This is optional, `Psr18ClientDiscovery` will be used to find http client. For instance `GuzzleHttp\Client` implements that interface new GuzzleHttp\Client() ); $id_attribute = 21; // int | The ID of the attribute $storefront = new \KauflandSellerApi\Model\Storefront(); // Storefront | Specifies the store by country $locale = new \KauflandSellerApi\Model\ProductDataLocale(); // ProductDataLocale | Allows clients to consume the data in languages that are different from the storefront-default locale try { $result = $apiInstance->getAttribute($id_attribute, $storefront, $locale); print_r($result); } catch (Exception $e) { echo 'Exception when calling AttributesApi->getAttribute: ', $e->getMessage(), PHP_EOL; }
API 端点
所有 URI 都相对于 /v2
模型
- AccountListingReportVersion
- AddShipmentRequest
- AddShipmentRequestShipmentInformation
- Address
- ApiResponse
- ApiResponseAttribute
- ApiResponseCarriers
- ApiResponseCategoryTree
- ApiResponseCategoryWithEmbedded
- ApiResponseImportFileInventoryCommand
- ApiResponseImportFileInventoryFeed
- ApiResponseImportFileOrderCommand
- ApiResponseInfoLocaleObject
- ApiResponseInitializeReturn
- ApiResponseOpenTicketResponse
- ApiResponseOrderDetails
- ApiResponseOrderInvoice
- ApiResponseOrderUnitDetails
- ApiResponsePingMessage
- ApiResponseProductDataImportFileResponse
- ApiResponseProductDataObject
- ApiResponseProductDataStatusResponse
- ApiResponseProductWithEmbedded
- ApiResponseReport
- ApiResponseRequestedReport
- ApiResponseReturnDetails
- ApiResponseReturnUnitDetails
- ApiResponseShippingGroup
- ApiResponseStringArray
- ApiResponseSubscription
- ApiResponseTicketWithEmbedded
- ApiResponseUnit
- ApiResponseUpdateReturn
- ApiResponseWarehouse
- Attribute
- BookingsReportVersion
- Buyer
- CancellationType
- Carrier
- Carriers
- Category
- CategoryBasic
- CategoryDecideBodyProduct
- CategoryDecideRequestBody
- CategoryEmbeddable
- CategoryTree
- CategoryWithEmbedded
- CollectionApiResponseAttribute
- CollectionApiResponseCategory
- CollectionApiResponseImportFileInventoryCommand
- CollectionApiResponseImportFileInventoryFeed
- CollectionApiResponseImportFileOrderCommand
- CollectionApiResponseOrder
- CollectionApiResponseOrderInvoice
- CollectionApiResponseOrderUnit
- CollectionApiResponseProductDataImportFileResponse
- CollectionApiResponseProductWithEmbedded
- CollectionApiResponseReport
- CollectionApiResponseReturn
- CollectionApiResponseReturnUnit
- CollectionApiResponseSharedSet
- CollectionApiResponseShippingGroup
- CollectionApiResponseSubscription
- CollectionApiResponseTicket
- CollectionApiResponseTicketMessage
- CollectionApiResponseUnitEmbedded
- CollectionApiResponseWarehouse
- CreateTicketMessageRequest
- Currency
- Delivery
- ErrorDetails
- ErrorResponse
- FulfillmentType
- ImportFileInventoryCommand
- ImportFileInventoryCommandPostRequest
- ImportFileInventoryFeed
- ImportFileInventoryFeedPostRequest
- ImportFileOrderCommand
- ImportFileOrderCommandPostRequest
- ImportFileRequestBody
- ImportFilesSortBy
- ImportStatus
- ImportType
- InitializeReturn
- InitializeReturnRequest
- Locale
- ModelReturn
- NotFoundResponse
- OpenTicketRequest
- OpenTicketResponse
- Order
- 订单详情
- 订单详情订单单元内部
- 订单可嵌入
- 订单发票
- 订单发票上传请求
- 订单单元
- 订单单元取消原因
- 订单单元取消请求
- 订单单元详情
- 订单单元详情退货单元
- 订单单元可嵌入
- 订单单元退款原因
- 订单单元退款请求
- 订单单元发送请求
- 订单单元状态
- 分页
- 部分拣选订阅回调URL或回退电子邮件或事件名称或是否活动或店面
- 拣选订阅回调URL或回退电子邮件或事件名称
- 取货地点
- ping消息
- 产品
- 产品数据导入文件响应
- 产品数据导入文件排序
- 产品数据导入文件状态
- 产品数据区域
- 产品数据对象
- 产品数据状态
- 产品数据状态属性
- 产品数据状态属性值状态
- 产品数据状态产品未准备好原因
- 产品数据状态响应
- 产品数据状态更新失败原因
- 产品可嵌入
- 产品单元嵌入
- 产品单元嵌入卖家
- 带嵌入式产品
- 报告
- 报告参数值
- 报告排序
- 请求预订报告请求
- 请求新销售报告请求
- 请求产品数据导入文件错误报告请求
- 请求的报告
- 退货详情
- 退货可嵌入
- 退货原因
- 退货状态
- 退货单元
- 退货单元澄清请求
- 退货单元详情
- 退货单元可嵌入
- 退货单元拒绝请求
- 退货单元状态
- 卖家API运输组区域选项名称枚举
- 卖家API运输组类型
- 卖家API仓库类型
- 共享集
- 运输组
- 运输组选项
- 运输组区域
- 店面
- 订阅
- 订阅事件名称
- 票
- 票可嵌入
- 票文件
- 票消息
- 票消息作者
- 票消息文件
- 票消息排序
- 票原因
- 票状态
- 票主题
- 带嵌入式票
- 带嵌入式买家票
- 带嵌入式产品票
- 票排序
- 单元
- 单元条件
- 单元嵌入
- 单元嵌入枚举
- 单元修补请求
- 单元请求
- 单元请求条件
- 单元状态
- 单元批量更新错误详情
- 单元批量更新错误详情
- 单元批量更新内部错误
- 单元批量更新请求
- 单元批量更新响应
- 单元批量更新响应数据内部
- 单元批量更新单元
- 更新退货
- 更新退货请求
- 仓库
- 仓库地址
- 仓库地址请求
- 仓库主体请求
- 可写单元状态
授权
所有端点均不需要授权。
测试
要运行测试,请使用
composer install vendor/bin/phpunit
作者
seller-api-support@kaufland-online.de
关于此包
此PHP包是由OpenAPI Generator项目自动生成的
- API版本:
2.14.1
- 生成器版本:
7.5.0
- 生成器版本:
- 构建包:
org.openapitools.codegen.languages.PhpClientCodegen