## 设置推送url接口 请求地址:`https://open-api.10ss.net/oauth/setpushurl` 请求方式:POST ### 所需参数 |名 称|类 型|描 述| |----|----|----| |client_id|string|开发者的应用ID,在[开放平台](https://dev.10ss.net)创建应用时获得| |access_token|string|授权的token 必要参数| |machine_code|string|易联云打印机终端号(开放型必传,自有型可忽略)| |cmd|string|打印完成标识`oauth_finish`,接单拒单标识`oauth_getOrder`,终端状态标识`oauth_printStatus`, 按键请求标识`oauth_request`| |url|string|推送地址填写必须以http://或https://开头的地址。推送地址需要支持GET访问,当GET请求访问时,请直接返回{"data":"OK"},用于推送地址的可用性测试| |status|string|开启`open`,关闭`close`| |sign|string|签名 详见API文档列表-[接口签名](../apiprotocol.md)| |id|string|UUID4 详见API文档列表-[uuid4](../apiprotocol.md)| |timestamp|int|当前服务器时间戳(10位)| ### 返回详情 ~~~ {"error":"0","error_description":"success"} {"error":"8","error_description":"打印机信息错误,参数有误"} {"error":"10","error_description":"权限不足"} {"error":"11","error_description":"sign验证失败"} {"error":"12","error_description":"缺少必要参数"} {"error":"18","error_description":"access_token已过期,请刷新access_token或者重新授权"} {"error":"19","error_description":"应用未上架或已下架"} {"error":"21","error_description":"关闭或重启失败"} {'error':'33', 'error_description':'Uuid不合法'} ~~~