Closed rxmie24 closed 4 years ago
NVM, got it sorted. Realized I have to use a url-encoded form as follows:
curl --location --request POST 'https://api2.realtor.ca/Listing.svc/PropertySearch_Post' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'CultureId=1' \
--data-urlencode 'ApplicationId=1' \
--data-urlencode 'PropertySearchTypeId=1'
I tried to mimic what the JS code does here, but using POSTMAN/CURL.
This is the response I get:
Is there an official doc for this stuff? Kind of looked everywhere and all I see are VB.NET and C# examples...