vladivanciu/my-dhl
Composer 安装命令:
composer require vladivanciu/my-dhl
包简介
Unofficial SDK for the MyDHL API
README 文档
README
Unofficial SDK for the MyDHL API
⚠️ Attention! This SDK was developed to be used with Laravel and tested against the MyDHL API v1.6
Supported Features
| Feature | Supported |
|---|---|
RateRequest |
✅ |
ShipmentRequest |
✅ |
ShipmentDeleteRequest |
✅ |
TrackingRequest |
❌ |
DocumentRetrieve |
❌ |
updateShipment |
❌ |
requestPickup |
❌ |
updatePickup |
❌ |
Installation
Require this package with composer.
composer require cubes-doo/my-dhl
Index of examples for supported features:
⚠️ Things to keep in mind in general:
- this is an SDK for a SOAP API; There are a lot of simple classes that only have attributes and constructors - this is so that we could better define what DHL's API expects as arguments; It might be tedious, but this is why examples are provided for every one of the supported API calls
- if you see a datetime attribute, it should usually be filled w/ a date-time string in the format
YYYY-MM-DDTHH:MM:SSGMT+k; This format corresponds w/ the ISO 8601 standard; Luckly Carbon's got your back; It is highly reccomended you use Carbon'stoIso8601String()method, like so:now()->toIso8601String()to populate these attributes - some attributes will have a docblock like this:
/** * Possible values: * + 'Y' or 1, ... * ... * + 'N' or 0, ... */
avoid mixing these two options. If you want, use 'y'/'n' on all such attributes, or stick to 1/0 instead. No constants are provided for these, because they are self explanatory, one character values.
统计信息
- 总下载量: 9
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2021-05-25