老師,rp咱們獲取信息默認是get請求,我想知道怎么發送post請求的?
return rp(`http://api.douban.com/v2/movie/in_theaters?apikey=0df993c66c0c636e29ecbb5344252a4a&start=${event.start}&count=${event.count}`)
.then(res => {
console.log(res);
return res;
}).catch(err => {
console.log(err)
})
如果是個post請求怎么發?
2019-07-08
多看手冊,https://github.com/request/request-promise