[英]Unable to send a post request using POSTMAN
我正在嘗試對https://api2.realtor.ca/Listing.svc/PropertySearch_Post
進行發布。
我可以使用節點庫realtorca進行此操作 ,但我想使用Postman進行此調用。 我顯然對Postman和這些REST呼叫是陌生的,所以我度過了艱難的時光。
當我查看realtorca.js
,它基本上在做
return request({
method: 'POST',
uri: API_URL,
form: form,
json: true
});
其中API_URL為'https://api2.realtor.ca/Listing.svc/PropertySearch_Post'
,格式為
{ CultureId: 1,
ApplicationId: 1,
PropertySearchTypeId: 1,
LongitudeMin: -81.277602,
LongitudeMax: -81.271602,
LatitudeMin: 43.038275,
LatitudeMax: 43.044275 }
我知道這必須很簡單,但是我嘗試了許多不同的變體,無法弄清楚。
通常,當我使用Postman時,必須在對象的變量名上使用引號。
也許嘗試{ "CultureId": 1, "ApplicationId": 1, "PropertySearchTypeId": 1, "LongitudeMin": -81.277602, "LongitudeMax": -81.271602, "LatitudeMin": 43.038275, "LatitudeMax": 43.044275 }
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.