Reputation: 13
I am trying to make a post call to 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. I am obviously new to Postman and these REST calls so I am having a tough time.
When I looked at realtorca.js
, it is basically doing
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
{ 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.
Upvotes: 0
Views: 2295
Reputation: 143
Usually when I'm using Postman, I have to use quotation marks on my object's variable names.
Maybe try
{
"CultureId": 1,
"ApplicationId": 1,
"PropertySearchTypeId": 1,
"LongitudeMin": -81.277602,
"LongitudeMax": -81.271602,
"LatitudeMin": 43.038275,
"LatitudeMax": 43.044275
}
Upvotes: 0