cblink / verider-sdk
包描述在此处。
v1.1.2
2020-05-08 02:04 UTC
Requires
- mouyong/foundation-sdk: ^2.0
Requires (Dev)
- mockery/mockery: ^1.3
- phpunit/phpunit: ^8.5
README
.
安装
$ composer require cblink/verider -vvv
用法
use Cblink\Verider\Application; $config = [ 'open_user_id' => 'your-client-id', 'open_user_secret' => 'your-client-secret', 'log' => [ 'name' => 'verider', ], 'http' => [ 'timeout' => 3, 'base_uri' => 'http://rcloud.verysum.com:8088', 'http_errors' => false, 'headers' => [ 'content-type' => 'application/json', 'accept' => 'application/json', ], ], 'cache' => [ 'namespace' => 'verider', ], ]; $app = new Application($config); // 绑定软件到账号下 $app->printer->bindMachine($machine_no, $machine_secret); // 获取软件下一站挂载的设备,多个软件用「,」分隔 $app->printer->getPrintersByMachineNo($machine_no); // 创建打印任务 $app->printer->createPrinterTask($device_no, $print_content, $print_id); // 通过设备号获取设备打印状态 $app->printer->getMachineStatusByMachineCode($device_no);
贡献
您可以通过以下三种方式之一进行贡献:
代码贡献流程并不非常正式。您只需确保遵循PSR-0、PSR-1和PSR-2编码规范。任何新的代码贡献都必须附有适用的单元测试。
许可证
MIT