answear/dpd-pl-pickup-services-bundle
最新稳定版本:4.2.0
Composer 安装命令:
composer require answear/dpd-pl-pickup-services-bundle
包简介
DPD.pl Pickup Services integration for Symfony.
README 文档
README
Integration for DPD.pl's PICKUP Services API avialble mypudo.dpd.com.pl.
Installation
- install with Composer
composer require answear/dpd-pl-pickup-services-bundle
Answear\DpdPlPickupServicesBundle\AnswearDpdPlPickupServicesBundle::class => ['all' => true],
should be added automatically to your config/bundles.php file by Symfony Flex.
Configuration
Below you will find bundle's full configuration:
answear_dpd_pl_pickup_services: key: 'xxxxxx' # your API Key # settings below are set as default, you don't need to provide them url: 'https://mypudo.dpd.com.pl/api/pudo/' # service's URL requestTimeout: 10.0 # time the library will wait for server's response
When using library without Symfony you need to put your configuration into an
instance of \Answear\DpdPlPickupServicesBundle\Service\ConfigProvider object.
Usage
DPD's API is available through two main services:
Answear\DpdPlPickupServicesBundle\Service\PUDOList- returns all PUDO items at onceAnswear\DpdPlPickupServicesBundle\Service\PUDOListStreaming- streams PUDO items one by one
Both services are automatically registered in your Symfony application's DI container. PUDO items
are returned to you as Answear\DpdPlPickupServicesBundle\ValueObject\PUDO objects.
Final notes
Feel free to open pull requests with new features, improvements or bug fixes. The Answear team will be grateful for any comments.
统计信息
- 总下载量: 15.96k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-04-15