定制 ushengyun/printer 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ushengyun/printer

Composer 安装命令:

composer require ushengyun/printer

包简介

ushengyun cloud printer api

README 文档

README

安装

composer install ushengyun\printer 如果安装不上,可直接下载

示例

  • 打印
    
    

$app_id = '**';

$app_secret = '****';

$rpc = new \ushengyun\protocol\RpcClient($app_id, $app_secret, 'https://open-api.ushengyun.com/printer');

$Zprinter = new \ushengyun\Printer($rpc);

$device_id = '1111111';

$device_secret = '11111111';

$printdata = '优声云拥有自主研发的云打印机,提供稳定高效,高可用的云打印方案';

try {

$Zprinter->set_args($device_id, $device_secret)->cloud_print($printdata);

} catch (Exception $e) {

}

* 设置声音

<?php

$app_id = '**';

$app_secret = '****';

$rpc = new \ushengyun\protocol\RpcClient($app_id, $app_secret, 'https://open-api.ushengyun.com/printer');

$Zprinter = new \ushengyun\Printer($rpc);

$device_id = '1111111';

$device_secret = '11111111';

try {

$Zprinter->set_args($device_id, $device_secret)->set_sound(1);

} catch (Exception $e) {

}


统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固