类 P10ssUtil
java.lang.Object
org.anyline.p10ss.util.P10ssUtil
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddPrinter(String code, String secret) voidaddPrinter(String code, String secret, String phone, String name) 自用模式 添加打印机createAuthorizeCodeUrl(String redirect, String state) 获取用户授权码org.anyline.entity.DataRoworg.anyline.entity.DataRowgetAccessToken(String code) static P10ssUtilstatic P10ssUtilgetInstance(String key) org.anyline.entity.DataRoworg.anyline.entity.DataRownewAccessToken(String code) org.anyline.entity.DataRow文本打印org.anyline.entity.DataRowrefreshAccessToken(String refresh) static P10ssUtil
-
构造器详细资料
-
P10ssUtil
-
P10ssUtil
-
-
方法详细资料
-
getInstance
-
reg
-
getInstance
-
getConfig
-
getAccessToken
public org.anyline.entity.DataRow getAccessToken() -
getAccessToken
-
newAccessToken
public org.anyline.entity.DataRow newAccessToken() -
newAccessToken
-
refreshAccessToken
-
createAuthorizeCodeUrl
获取用户授权码- 参数:
redirect- 回调地址state- 状态保持- 返回:
- url url
-
addPrinter
自用模式 添加打印机- 参数:
code- 打印机编号secret- 打印机密钥phone- phonename- name- 抛出:
Exception- 异常 添加失败时异常
-
addPrinter
- 抛出:
Exception
-
print
文本打印- 参数:
machine- machineorder- ordertext- text- 返回:
- DataRow
- 抛出:
Exception- 异常 Exception
-