inwendo / iw_client_latex_php
inwendo Latex To PDF 转换器的API组件
1.0.2
2017-09-08 15:46 UTC
Requires
- php: >=5.4
- ext-curl: *
- ext-json: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2024-09-24 17:14:54 UTC
README
未提供描述(由Swagger Codegen生成 https://github.com/swagger-api/swagger-codegen)
此PHP包由Swagger Codegen项目自动生成 https://github.com/swagger-api/swagger-codegen
- API版本:0.0.1
- 包版本:1.0
- 构建日期:2017-03-31T13:20:13.635+02:00
- 构建包:class io.swagger.codegen.languages.PhpClientCodegen
需求
PHP 5.4.0及更高版本
安装与使用
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/inwendo/iw_client_latex_php.git"
}
],
"require": {
"inwendo/iw_client_latex_php": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/InwendoLatexApi/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit lib/Tests
入门
请按照安装和用法步骤进行,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: password Inwendo\Latex\Common\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $api_instance = new Inwendo\Latex\Common\Api\DocumentApi(); try { $result = $api_instance->getDocumentCollection(); print_r($result); } catch (Exception $e) { echo 'Exception when calling DocumentApi->getDocumentCollection: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于https://latex.service.inwendo.cloud/
模型文档
授权文档
密码
- 类型: OAuth
- 流程: password
- 授权URL:
- 作用域:
- write: 允许修改资源
- read: 允许读取资源