Environments#
We maintain three distinct environments: DEV, PRE (UAT), and PRO.Important! Remember that each environment utilizes unique access tokens.Development (DEV): This environment is private, exclusively accessible by Accumin.
Pre-Production (PRE/UAT): Access to the PRE/UAT environment is facilitated through the subdomain https://api-pre.urbandataanalytics.com.Requested modifications are initially implemented and tested within the UAT environment.
Production (PRO): The PRO environment can be accessed via the https://api.urbandataanalytics.com subdomain.Updates to production are scheduled to occur on specific, predefined dates, at predetermined times, incorporating changes that have been thoroughly tested and approved in the UAT environment.
Enums#
0: Listing not active (Unpublished)
1: Listing active (Published)
Category id (area in sqm)3: Detached house or Villa
10: Country (ie. "España")
11: Region (ie. "Comunidad Autonoma de Madrid" )
12: Province (ie. "Madrid")
13: Municipality (ie. "Madrid")
14: District (ie. "Chamberi")
15: Neighborhood (ie. "Almagro")
Cadastral Reference Schema#
Using iframes#
This guide provides steps for integrating an iframe into your frontend, which requires an access token for authentication.Step 1: Generating an Access Token#
Before loading the iframe, you must generate an access token. This token acts as a key to authenticate and establish a secure communication channel.Important! For security reasons, it is recommended to generate the access token in your backend.Step 2: Embedding the Iframe#
After obtaining the access token, you need to embed the iframe into your frontend.Syntax:#
Replace YOUR_IFRAME_URL with the actual URL of the iframe and YOUR_ACCESS_TOKEN with the token generated in Step 1.Step 3: Listening to Events#
To capture and handle user interactions within the iframe, set up event listeners in your frontend code.Key Events to Listen For:#
Event 1: [Description of Event 1]
Event 2: [Description of Event 2]
Event 3: [Description of Event 3]
Replace [Description of Event 1, 2, 3...] with the actual descriptions of the specific events you want to capture.Adding Event Listeners:#
Use JavaScript to add event listeners to these specific events. Here's an example for adding a listener to Event 1:Replace 'event1' and the handling code with the appropriate event name and your specific handling logic.Example (JavaScript):#
Remember that generatedAccessToken must contain your previously generated token.
Follow these steps to ensure a secure and functional integration of the iframe into your application.Modified at 2025-11-19 16:26:32