mplus-software/mplus-api-client-php
Composer 安装命令:
composer require mplus-software/mplus-api-client-php
包简介
PHP client for the Mplus Q-line API.
README 文档
README
PHP client for the Mplus Q-line API.
Install through Composer:
composer require mplus-software/mplus-api-client-php
Example of usage:
The following script will connect to the API with your credentials and try to request the currently running version of the API.
<?php require_once('Mplusqapiclient.php'); $mplusqapiclient = new Mplusqapiclient(); $mplusqapiclient->setApiServer($your_api_url); $mplusqapiclient->setApiPort($your_api_port); $mplusqapiclient->setApiFingerprint($certificate_fingerprint); $mplusqapiclient->setApiIdent($your_api_ident); $mplusqapiclient->setApiSecret($your_api_secret); try { $mplusqapiclient->initClient(); } catch (MplusQAPIException $e) { exit($e->getMessage()); } try { $api_version = $mplusqapiclient->getApiVersion(); echo sprintf('Current API version: %d.%d.%d', $api_version['majorNumber'], $api_version['minorNumber'], $api_version['revisionNumber']); } catch (MplusQAPIException $e) { exit($e->getMessage()); }
Visit the Mplus Developers website for more information.
统计信息
- 总下载量: 70.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unlicense
- 更新时间: 2016-04-28