以下是我的代码:
我在使用 Chrome 的 REST CLIENT 发送相同请求时能够正常工作,但现在却遇到了“Bad Request”错误。
$http({
url: 'https://apistage.dealsignal.com/api/v0/company_watchlists/' + wishlist_id,
method: 'PATCH',
params: {
list: {
add_company_ids: ['61737'],
name: 'My Wishlist'
},
api_key: 'CtxY3Kpc7ZDL8VDfLmPt9wss'
}
})
.success(function(response) {
console.log(response);
}).
error(function(response) {
console.log(response);
return false;
});
我在使用 Chrome 的 REST CLIENT 发送相同请求时能够正常工作,但现在却遇到了“Bad Request”错误。