maranqz / uvdesk-client
dev-master
2019-08-18 11:16 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~2.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-18 22:31:06 UTC
README
UVdesk API 与表示性状态传输(REST)类别相关联,允许执行读取、编辑、删除、添加帮助台系统数据等操作。在此,我们使用基础路径中的子域和Token URL。用户必须修改子域以使用其UVdesk子域进行API访问。如果您想从右上角部分下载并使用API客户端,那么您还必须在下载的客户端的baseUrl中将子域替换为您的UVdesk子域。
此PHP包由Swagger Codegen项目自动生成
- API版本:1.0.0
- 包版本:1.0.0
- 构建包:io.swagger.codegen.languages.PhpClientCodegen
需求
PHP 5.5及以后版本
安装与使用
Composer
要使用Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com//uvdesk-client.git"
}
],
"require": {
"/uvdesk-client": "*@dev"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/GeneratedUvdeskClient/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照安装过程操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure OAuth2 access token for authorization: password $config = UvdeskApi\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN'); $apiInstance = new UvdeskApi\Api\AgentApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = "id_example"; // string | try { $apiInstance->deleteApiMember($id); } catch (Exception $e) { echo 'Exception when calling AgentApi->deleteApiMember: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI都是相对于https://subdomain.uvdesk.com/en/api
模型文档
授权文档
密码
- 类型: OAuth
- 流程: password
- 授权URL:
- 作用域:
- api: 基于用户角色的API访问