darkside666/nofrixion-api-client
Composer 安装命令:
composer require darkside666/nofrixion-api-client
包简介
Nofrixion API client in PHP
README 文档
README
⚠️ Note: This is a beta version of the Nofrixion API client library. Features and functionality may change in future updates.
Installation
To install the Nofrixion API client library, use Composer:
composer require darkside666/nofrixion-api-client
Usage Examples
You can find usage examples in the /example folder:
- Authorization Example: See
auth.phpfor implementing authorization. - API Client Example: See
test.phpfor using the Nofrixion API client.
Updating Client API Code
While it's generally not necessary to manually update the client API code, if you need to re-generate the API classes, you can follow the steps below:
-
Install OpenAPI Generator Ensure you have NPM installed, then install the OpenAPI Generator CLI globally:
# install new npm install @openapitools/openapi-generator-cli -g # or update existing npm update @openapitools/openapi-generator-cli -g
-
Generate the Nofrixion\Client Code Use the OpenAPI Generator to generate the client code from the Nofrixion API Swagger definition:
# generate from live API openapi-generator-cli generate -i https://api.nofrixion.com/swagger/v1/swagger.json -g php -o ./src-client -c src-client-config.json # or generate from development API openapi-generator-cli generate -i https://api-dev.nofrixion.com/swagger/v1/swagger.json -g php -o ./src-client -c src-client-config.json
Client Documentation
For more detailed information on using the generated client, refer to the Client Documentation.
统计信息
- 总下载量: 1.44k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: unlicense
- 更新时间: 2024-10-01