ceghirepro/current

该软件包已被弃用,不再维护。作者建议使用 cegrent/current 软件包。

Current RMS Laravel 包

0.1.2 2023-08-31 08:49 UTC

This package is auto-updated.

Last update: 2023-08-31 08:50:46 UTC


README

这是一个轻量级的包,可以让您的 Laravel 应用程序与 Current RMS API 进行交互。

入门指南

将以下命令添加到您的项目中:composer require Cegrent/current dev-master

  1. Cegrent\Current\CurrentServiceProvider::class 添加到 config/app.php 中的 providers 配置。
  2. 'Current' => Cegrent\Current\Current::class 添加到 config/app.php 中的 aliases 配置。
  3. 运行 php artisan vendor:publish
  4. 将 API 密钥和域名详细信息添加到 config/current.php 配置文件。

典型用法

/products 发起 GET 请求

Current::get('/products', array('page' => '1', 'per_page' => '20', 'filtermode' => 'all'));

/availability/group 发起 POST 请求

Current::post('/availability/group', array(), array('product_availability_view_options' => array('product_group_id' => 1));