dhcc/om-openapi

OM-OPENAPI SDK for PHP7

dev-master 2020-12-04 03:00 UTC

This package is auto-updated.

Last update: 2022-07-29 02:23:01 UTC


README

项目简介

适用于开发OM项目的PHP-SDK

安装说明

composer require dhcc/om-openapi

快速开始

快速初始化客户端

除了手动new客户端,也可以使用简易工厂类

use \Dhcc\OmOpenapi\client\Factory;
$omClient = Factory::guzzleOmClient([]);

初始化请求类

以删除订单为例

use \Dhcc\OmOpenapi\requests\refund\DelRefund;
$request = new DelRefund();
$request->setOrderId(1);

发送请求

$response = $omClient->execute($request);