freedomtech-hosting/polydock-amazeeai-backend-client-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

freedomtech-hosting/polydock-amazeeai-backend-client-php

最新稳定版本:v0.1.3

Composer 安装命令:

composer require freedomtech-hosting/polydock-amazeeai-backend-client-php

包简介

The Freedom Tech amazee.ai Private AI PHP library

README 文档

README

The Freedom Tech amazee.ai Private AI PHP library provides a simple, object-oriented interface to interact with the amazee.ai backend API.

Installation

Install the library via Composer:

composer require freedomtech-hosting/polydock-amazeeai-backend-client-php

Requirements

  • PHP 8.2 or higher
  • ext-curl extension
  • ext-json extension

Basic Usage

To get started, instantiate the Client with your API base URL and an optional access token.

use FreedomtechHosting\PolydockAmazeeAIBackendClient\Client;

$baseUrl = 'https://api.amazee.ai';
$accessToken = 'your-access-token';

$client = new Client($baseUrl, $accessToken);

// Example: Get current user info
try {
    $me = $client->getMe();
    print_r($me);
} catch (\Exception $e) {
    echo "Error: " . $e->getMessage();
}

Authentication

If you don't have a token yet, you can login to receive one:

$response = $client->login('user@example.com', 'password');
$token = $response['token']; // Depending on API response structure

Working with Teams

// List all teams
$teams = $client->listTeams();

// Create a new team
$newTeam = $client->createTeam('My Team', 'admin@example.com');

Private AI Keys

// List Private AI keys
$keys = $client->listPrivateAIKeys();

// Create a new Private AI key
$client->createPrivateAIKeys($regionId, 'my-key-name');

Features

  • Authentication: Login, Register, Logout, and Token management.
  • User Management: Search, Create, Update, and Delete users.
  • Team Management: Manage teams and user assignments.
  • Private AI Keys: Manage your private AI keys and tokens.
  • Region Management: List and manage regions (Admin).
  • Audit Logs: Access system audit logs.
  • Health Check: Monitor API health status.

Debug Mode

Enable debug mode to see detailed request/response information in the console:

$client = new Client($baseUrl, $accessToken, debug: true);

License

This library is licensed under the MIT License. See the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固