首页 > 代码库 > request发送json-rpc请求

request发送json-rpc请求

直接贴代码吧:

let url = ‘/rest/2.0/res/auth_token?session=‘ + session  url += getUrlTokenQuery()  const method = ‘Stream.open‘  const params = { // 预览参数    ‘channel‘: 1,    ‘ip‘: 0,    ‘protocol‘: 1,    ‘port‘: 0,    ‘coder‘: 0  }  var requestData = http://www.mamicode.com/{>

 

request发送json-rpc请求