chatway/mt4-micro-php-client

v1.0.3 2022-10-03 11:30 UTC

This package is auto-updated.

Last update: 2024-09-30 01:46:43 UTC


README

MT4 微服务。调用 /init/ 获取令牌,该令牌在其他方法中是必需的。

此 PHP 包由 Swagger Codegen 项目自动生成 (点击查看)

  • API 版本:1.0
  • 构建包:io.swagger.codegen.languages.PhpClientCodegen

需求

PHP 5.5 及以上版本

安装与使用

Composer

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

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com//.git"
    }
  ],
  "require": {
    "/": "*@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\GroupsApi(
    // 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()
);
$token = "token_example"; // string | 
$accept = "accept_example"; // string | 

try {
    $apiInstance->groupsGet($token, $accept);
} catch (Exception $e) {
    echo 'Exception when calling GroupsApi->groupsGet: ', $e->getMessage(), PHP_EOL;
}

?>

API 端点文档

所有 URI 都是相对于 https://apps.noorcm.com:6502/v1

模型文档

授权文档

所有端点都不需要授权。

作者