printsites/deliv-php

http://www.deliv.co/ PHP SDK

2.0.4 2017-05-09 17:42 UTC

This package is not auto-updated.

Last update: 2024-09-29 02:23:52 UTC


README

更多信息请访问 Deliv.co.

使用说明

设置客户端

     $client = new \Deliv\DelivClient('apikey', 'production||<defaults_to_staging>');
     $client->deliveries->cancelDelivery('<delivery_id>');

工作文档

仍在开发中,但所有方法都以这种风格和格式提供。

配送与估算

创建估算

    $client->deliveries->createDeliveryEstimate($data);

获取配送估算

    $client->deliveries->getDeliveryEstimate($id);

创建配送

    $client->deliveries->createDelivery($data);

通过ID获取配送

    $client->deliveries->getDelivery('id');

更新配送

    $client->deliveries->updateDelivery($delivery);

正在运行测试

composer install --dev
phpunit

注意

深受https://github.com/intercom/intercom-php的启发

(c) 2017 iSourceWorldWide, LLC