承接 patryk-sawicki/apaczka 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

patryk-sawicki/apaczka

最新稳定版本:1.0.8

Composer 安装命令:

composer require patryk-sawicki/apaczka

包简介

API client for aPaczka service.

README 文档

README

API client for aPaczka service.

Based on aPaczka api doc.

Requirements

  • PHP 8.0 or higher with json extensions.

Installation

The recommended way to install is through Composer.

$ composer require patryk-sawicki/apaczka

Usage

Class declaration.

$aPaczka = new Apaczka();

Services

Return an array with a list of services.

$aPaczka->services();

Pickup type

Return an array with a list of pickup type.

$aPaczka->pickupType();

Options

Return an array with a list of options.

$aPaczka->options();

Points type

Return an array with a list of points type.

$aPaczka->pointsType();

Package type

Return an array with a list of package type.

$aPaczka->packageType();

Orders

Return json response with the latest orders.

$aPaczka->orders(int $page = 0, int $limit = 10);

Order

Return json response with the order details.

$aPaczka->order(int $orderId);

Waybill

Download waybill.

$aPaczka->downloadWaybill(int $orderId);

Store waybill.

$aPaczka->storeWaybill(int $orderId, $path);

Service structure

Return json response with the service structure.

$aPaczka->serviceStructure();

Postage points

Return json response with the list of postage points.

$aPaczka->spoints(string $type);

Turn In

Download turn in.

$aPaczka->downloadTurnIn(array $orderIds);

Store turn in.

$aPaczka->storeTurnIn(array $orderIds, $path);

Pickup hours

Return json response with the pickup hours.

$aPaczka->pickupHours(string $postalCode, int $serviceId = null, bool $removeIndex = false);

Order valuation

Return json response of the order valuation.

$aPaczka->orderValuation(array $order);

Send order

Return json response of the order send.

$aPaczka->sendOrder(array $order);

Cancel order

Return json response of the order cancel.

$aPaczka->cancelOrder(int $orderId);

Changelog

Changelog is available here.

统计信息

  • 总下载量: 110
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-19