garissman/printify

Printify PHP SDK

维护者

详细信息

github.com/garissman/printify

源代码

安装: 8

依赖项: 0

建议者: 0

安全: 0

星星: 0

关注者: 0

分支: 5

类型:项目

0.0.5 2024-05-18 06:01 UTC

This package is auto-updated.

Last update: 2024-09-18 07:03:56 UTC


README

为 Laravel 提供的基本 PHP 包装器,用于与 Printify API 一起工作。API 端点文档可以在以下位置找到:[https://developers.printify.com/](https://developers.printify.com/)

安装

composer require garissman/printify

发布

安装后,您应使用 vendor:publish Artisan 命令发布配置文件。此命令将 printify.php 配置文件发布到您的应用程序的配置目录中

php artisan vendor:publish --provider="Garissman\Printify\PrintifyServiceProvider"

基本用法

创建一个新的 Printify API 实例并将其传递给端点类。例如,目录

use Garissman\Printify\Facades\Printify;

Printify::catalog()->all()

基于商店的端点

对于基于商店的端点,请在端点构造函数中传递商店 ID。例如

use Garissman\Printify\Facades\Printify;

Printify::order(<Shop ID>)->all()

需要商店 ID 的端点

  • 产品
  • 订单
  • 上传
  • Webhooks

端点