[英]Unable to send a post request using POSTMAN
I am trying to make a post call to https://api2.realtor.ca/Listing.svc/PropertySearch_Post
. 我正在尝试对https://api2.realtor.ca/Listing.svc/PropertySearch_Post
进行发布。
I am able to do this using a node library realtorca , but I would like to make this call using Postman. 我可以使用节点库realtorca进行此操作 ,但我想使用Postman进行此调用。 I am obviously new to Postman and these REST calls so I am having a tough time. 我显然对Postman和这些REST呼叫是陌生的,所以我度过了艰难的时光。
When I looked at realtorca.js
, it is basically doing 当我查看realtorca.js
,它基本上在做
return request({
method: 'POST',
uri: API_URL,
form: form,
json: true
});
where API_URL is 'https://api2.realtor.ca/Listing.svc/PropertySearch_Post'
and form is 其中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 }
I know this has to be simple but I tried lots of different variations and can't figure this out. 我知道这必须很简单,但是我尝试了许多不同的变体,无法弄清楚。
Usually when I'm using Postman, I have to use quotation marks on my object's variable names. 通常,当我使用Postman时,必须在对象的变量名上使用引号。
Maybe try { "CultureId": 1, "ApplicationId": 1, "PropertySearchTypeId": 1, "LongitudeMin": -81.277602, "LongitudeMax": -81.271602, "LatitudeMin": 43.038275, "LatitudeMax": 43.044275 }
也许尝试{ "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.