定制 revenexx/sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

revenexx/sdk

Composer 安装命令:

composer require revenexx/sdk

包简介

Revenexx PHP SDK.

README 文档

README

This repository is auto-generated by the Revenexx SDK Generator. Do not submit changes directly — they will be overwritten on the next generation run.

Revenexx API — revenexx Revenexx PHP SDK

License Version Twitter Account

Revenexx PHP SDK for server-side applications.

Revenexx API — revenexx

Installation

Install the SDK with Composer:

composer require revenexx/sdk

Getting Started

Init your SDK

Initialize your SDK with your Revenexx API endpoint, your tenant slug and your secret API key.

use RevenexxAPIRevenexx\Client;

$client = (new Client())
    ->setEndpoint('https://api.revenexx.com') // Your API Endpoint, all paths are versioned (/v1/...)
    ->setTenant('<TENANT_SLUG>') // Your tenant slug
    ->setApiKeyAuth('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;

Make Your First Request

Once your SDK object is set, create any of the Revenexx service objects and choose any request to send. Full documentation for any service method you would like to use can be found in your SDK documentation or in the API References section.

$products = new Products($client);

$result = $products->productsList();

Full Example

use RevenexxAPIRevenexx\Client;
use RevenexxAPIRevenexx\Services\Products;

$client = (new Client())
    ->setEndpoint('https://api.revenexx.com') // Your API Endpoint, all paths are versioned (/v1/...)
    ->setTenant('<TENANT_SLUG>') // Your tenant slug
    ->setApiKeyAuth('919c2d18fb5d4...a2ae413da83346ad2') // Your secret API key
;

$products = new Products($client);

$result = $products->productsList();

$product = $products->productsGet(
    id: '<PRODUCT_ID>'
);

Error Handling

The Revenexx PHP SDK raises a RevenexxAPIRevenexxException with message, code and response properties. You can handle any errors by catching RevenexxAPIRevenexxException and present the message to the user or handle it yourself based on the provided error information. Below is an example.

use RevenexxAPIRevenexx\RevenexxAPIRevenexxException;

$products = new Products($client);

try {
    $product = $products->productsGet(
        id: '<PRODUCT_ID>'
    );
} catch (RevenexxAPIRevenexxException $error) {
    echo $error->getMessage();
}

Learn more

You can use the following resources to learn more and get help

Contribution

This library is auto-generated by the Revenexx custom SDK Generator. To learn more about how you can help us improve this SDK, please check the contribution guide before sending a pull-request.

License

Please see the MIT license file for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固