0

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.

2
  • Can you share the error message Commented Oct 2, 2018 at 0:34
  • It's working fine from my Postman. In the server app, FormData and raw json will result in The request was invalid. (hidden). So yeah, make sure you use POST method and Content-type: application/x-www-form-urlencoded Commented Oct 2, 2018 at 0:47

2 Answers 2

1

Works for me posting with x-www-form-urlencoded

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

that works, i gave u a thumbs up but i guess my reputation isn't high enough to show up
0

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 }

2 Comments

I tried that, would it possible for you provide some screen shots?
Is the data type set to JSON? The button next to "Pretty," "Raw," and "Preview."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.