验证中...
Languages: PHP
Categories: 常用工具包
Latest update 2018-12-09 10:37
gistfile1.txt
Raw Copy
<?php
require_once __DIR__."/../vendor/autoload.php";
$app_id = '80000××××';
$app_secret = '2cd1a7c4a3aa620a07';
$device_id = '123457';
//$device_id = '12346434';
$device_secret = 'jnxiaer7';
//$device_secret = 'd15ebbny';
$rpc = new \zhongwu\protocol\RpcClient($app_id, $app_secret, 'http://api.zhongwuyun.com');
$Zprinter = new \zhongwu\Printer($rpc);
$printdata = '中午云拥有自主研发的云打印机,提供稳定高效,高可用的云打印方案';
$printdata = '张三';
try {
var_dump($Zprinter->set_args($device_id, $device_secret)->cloud_print($printdata));
} catch (Exception $e) {
echo $e;
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search