2

I'm working with Trestle which is real estate MLS service to get property data etc. I have followed their WebApi docs but I'm getting this error whenever I hit their api it looks like their server thinks that request is from some BOT. Even they recommend using Postman to test api:

enter image description here

Its been 3 days and still cant find any fix. Any help?

Zayn
  • 741
  • 1
  • 5
  • 22
  • Incapsula allows sites to block based on geography, which might be relevant for a real estate API. – root Feb 15 '20 at 23:42
  • Yes this was the case, I tried with vpn and api worked so it means this api is only accessible to certain countries – Zayn Feb 17 '20 at 11:29
  • @Zayn If this is still going on, please contact us at trestlesupport@corelogic.com. We can manually unblock your IP address. – Dan Ray Oct 13 '20 at 14:28

1 Answers1

0

You do not seem to be following this documentation correctly. https://docs-trestle.corelogic.com/GettingStarted/WebAPI

At the moment you are entering the token URL (https://api-prod.corelogic.com/trestle/oidc/connect/token) in the main Postman request URL field. The documentation states that you should use the Get New Access Token button on the Authorization tab of a request. You are entering the token URL in the main Postman request URL field.

This is a default flow for oAuth 2.0 requests in Postman. https://learning.postman.com/docs/postman/sending-api-requests/authorization/#oauth-20

Example: This could be your request to retrieve data:

https://api-prod.corelogic.com/trestle/odata/$metadata

On the Authorization tab you should select oAuth 2.0; select Get New Access Token and you will see a view which gives you the functionality you are looking for.

When successful, you will get a pop-up which you need to accept in order to use the API.

The_Switch
  • 193
  • 11
  • Yes there are two methods, one is by using oAuth2.0 and other one is by hitting main url, I also tried by oAuth2.0 but no luck there too, got same error – Zayn Feb 14 '20 at 13:13
  • Error: Could not complete OAuth 2.0 token request: {" – Zayn Feb 14 '20 at 13:16