jeac-corp/mpandco-php-sdk

与 mPandco API 通信

1.0 2019-05-02 12:12 UTC

This package is auto-updated.

Last update: 2024-09-22 00:41:07 UTC


README

mPandco RESTful API 的 PHP SDK

在其项目中安装库

composer require jeac-corp/mpandco-php-sdk

使用示例

执行命令 php sample/index.php 以启动测试环境,访问 https://:4000

配置 ApiContext 以帮助您进行请求

/** @var JeacCorp\Mpandco\Rest\ApiContext $apiContext */
$apiContext = new JeacCorp\Mpandco\Rest\ApiContext([
    "clientId" => $clientId,//Su cliente
    "clientSecret" => $clientSecret,//Su secreto
    "mode" => "sandbox",
]);

"mode" 参数有 "sandbox" 开发环境 和 "live" 生产环境。

API RESTful 的官方文档