ln/threecx
最新稳定版本:v0.0.9
Composer 安装命令:
composer require ln/threecx
包简介
README 文档
README
package to wrap the api of 3cx®
- first steps: https://www.3cx.com/docs/configuration-rest-api/
- openapi documentation: https://downloads-global.3cx.com/downloads/misc/restapi/3cxconfigurationapi.yaml
getting started
composer require ln/threecx
usage
conf
you need the FQDN of the instanz, username and password (with permissions for the action)
$client = new Client(new Host(string <fqdn>, int <port>, bool <debug, optional>)); $client->setUser(new User(string <username>, string <password>, string <mfa, optional>)); // or $client->setRest(new Rest(string <clientId>, string <clientSecret>)); // or $client->setToken(new Token(string <tokenType>, int <expires>, string <accessToken>, string <refreshToken>));
functions
get
$client->get(string <uri>, array <query>)
delete
$config->delete(string <uri>, array <query>)
post, put, patch
$config-><post|put|patch>(string <uri>, array <payload>, array <query>)
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-01-18