var options = {
uri: 'http://vop.baidu.com/server_api',
method: 'POST',
headers: {"Content-Type": "application/json"},
json:{
'format':'amr',
'rate':'8000',
'channel':1,
'token':token,//1
'cuid':userId,//2
'url':url//3这三个已经在前面定义
}
};
function callback(error, res, body) {
if (!error && res.statusCode == 200{
response.send(info);
}
}
request(options, callback);
这样写对吗?但是总是参数错误.....求助~~
补充我参考过得一些网址
http://yijiebuyi.com/blog/8221eb14c8482e7efd1868946e99ea7c.html
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块
由于人力有限,目前rest api只提供java和C++代码的demo,其余平台使用请自行探索,谢谢~