esc-company/petdesign-api-client

此包已弃用且不再维护。未建议替代包。

Petdesign API 客户端库

v0.6.1 2024-03-03 06:40 UTC

This package is auto-updated.

Last update: 2024-03-09 23:18:04 UTC


README

GitHub Release Packagist Downloads minimum PHP version GitHub License

关于

🔥 服务器API已弃用,因此此仓库已归档。 🔥

此HttpClient用于连接PETDESIGN API系统。

必须需要 密钥

安装

composer require esc-company/petdesign-api-client

用法

查找Petdesign商品和分类

您可以使用两种方法获取商品信息。

它们是 find()get()find 用于 单个 商品信息,而 get 用于商品信息 列表

<?php

// Goods
$good = (new Good({api_key}))->find(30);
$goods = (new Good({api_key}))->show(false)->get();
$goods = (new Good({api_key}))->page(1)->get();
$goods = (new Good({api_key}))->from('2019-09-01')->get();

// Categories
$categories = (new Category({api_key}))->get();
$categories = (new Category({api_key}))->byCat()->get();
$catCategory = (new Category({api_key}))->find(Category::catCode);

我们建议使用Fasade类以方便您。正如...

测试

composer test

许可证

非官方的Petdesign API PhpClient是开源软件,许可协议为MIT许可证