承接 itfrogs/ekassir 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

itfrogs/ekassir

Composer 安装命令:

composer require itfrogs/ekassir

包简介

A short description of what your package does

README 文档

README

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: v1.2
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen For more information, please visit https://ekassir.com

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new Swagger\Client\Api\MerchantApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$qrc_id = "qrc_id_example"; // string | 
$body = new \Swagger\Client\Model\map(); // map[string,null] | 

try {
    $apiInstance->petition($qrc_id, $body);
} catch (Exception $e) {
    echo 'Exception when calling MerchantApi->petition: ', $e->getMessage(), PHP_EOL;
}

$apiInstance = new Swagger\Client\Api\MerchantApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$qrc_id = "qrc_id_example"; // string | 
$media_type = new \Swagger\Client\Model\MediaType(); // \Swagger\Client\Model\MediaType | 
$width = 300; // int | 
$height = 300; // int | 

try {
    $result = $apiInstance->qRCodeGet($qrc_id, $media_type, $width, $height);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MerchantApi->qRCodeGet: ', $e->getMessage(), PHP_EOL;
}

$apiInstance = new Swagger\Client\Api\MerchantApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\map(); // map[string,null] | 
$media_type = new \Swagger\Client\Model\MediaType(); // \Swagger\Client\Model\MediaType | 
$width = 300; // int | 
$height = 300; // int | 

try {
    $result = $apiInstance->qRCodePost($body, $media_type, $width, $height);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MerchantApi->qRCodePost: ', $e->getMessage(), PHP_EOL;
}

$apiInstance = new Swagger\Client\Api\MerchantApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = new \Swagger\Client\Model\map(); // map[string,null] | 

try {
    $result = $apiInstance->qRCodePost_0($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MerchantApi->qRCodePost_0: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

All URIs are relative to /

Class Method HTTP request Description
MerchantApi petition POST /api/merchant/v1/petition/{qrcId}
MerchantApi qRCodeGet GET /api/merchant/v1/qrc-data/{qrcId}/payload Get QR-code payload
MerchantApi qRCodePost POST /api/merchant/v1/qrc-data Register QR-code data
MerchantApi qRCodePost_0 PUT /api/merchant/v1/qrc-status Get QR-codes statuses
ReportsApi ordersGET GET /api/merchant/v1/reports/orders/{orderId}
ReportsApi ordersPOST POST /api/merchant/v1/reports/orders

Documentation For Models

Documentation For Authorization

Bearer

  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

oAuth2

Author

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固