itfrogs/ekassir

您包的功能简短描述

dev-master 2022-11-15 16:17 UTC

This package is auto-updated.

Last update: 2024-09-15 20:05:23 UTC


README

没有提供描述(由 Swagger Codegen 生成 https://github.com/swagger-api/swagger-codegen

此 PHP 包是由 Swagger Codegen 项目自动生成的

  • API 版本:v1.2
  • 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen 更多信息请访问 https://ekassir.com

要求

PHP 5.5 及以上

安装 & 使用

Composer

要通过 Composer 安装绑定,请将以下内容添加到 composer.json

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

然后运行 composer install

手动安装

下载文件并包含 autoload.php

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

测试

要运行单元测试

composer install
./vendor/bin/phpunit

入门指南

请遵循 安装过程,然后运行以下命令

<?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;
}
?>

API 端点文档

所有 URI 都是相对于 /

模型文档

授权文档

Bearer

  • 类型: API 密钥
  • API 密钥参数名: Authorization
  • 位置: HTTP 头部

OAuth2

作者