vmeretail/servicedeskify-php-sdk
Composer 安装命令:
composer require vmeretail/servicedeskify-php-sdk
包简介
The ServiceDeskify helpdesk PHP library provides convienient access to VmeRetail's ServiceDeskify api from apps written in PHP. It includes a pre-defined set of classes for API resources.
README 文档
README
Service Deskify Helpdesk PHP
The ServiceDeskify helpdesk PHP library provides convienient access to VmeRetail's ServiceDeskify api from apps written in PHP. It includes a pre-defined set of classes for API resources.
Composer
We recommend installing this library via composer;
composer require vmeretail/servicedeskify-php-sdk
Along with composer's autoloader:
require 'vendor/autoload.php';
You can later pull the latest changes.
composer update
Dependencies
Getting Started
Create an authenticated client first in order to get access to the API exposed by ServiceDeskify. The credentials and keys are provided by VmeRetail.
(new \VmeRetail\ServiceDeskify\Http\PublicClient())
->setBaseUrl(\VmeRetail\ServiceDeskify\ServiceDeskifyConstants::HELPDESK_API_URL_TEST)
->authenticate('example@vmeretail.com', 'password', '2', 'client_secret_SNo1LKmrXdUTdjTdb1bC4eZ6l');
After, you would be able to access an API resource like so:
$incidentsApi = new \VmeRetail\ServiceDeskify\Incidents();
And be able to make API calls:
$serviceDeskifyResponseObject = $incidentsApi->create([ //...properties ]);
Then you are able to get the body of the response as a JSON object:
$serviceDeskifyResponseObject->getBodyAsJson();
Reference API
Details about the properties that are to be passed in and responses can be found (https://test.helpdesk.vme.co/docs/)
统计信息
- 总下载量: 23.06k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-21