繁体   English   中英

无法使用POSTMAN发送发帖请求

[英]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 }

我知道这必须很简单,但是我尝试了许多不同的变体,无法弄清楚。

适用于我使用x-www-form-urlencoded发布的作品

在此处输入图片说明

通常,当我使用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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM