简体   繁体   中英

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 .

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.

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

在此处输入图片说明

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 }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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