Hi everyone, I am trying to get data from an API b...
# getting-started
j
Hi everyone, I am trying to get data from an API but I need to pass the equipment number. How can I pass the equipment number dynamically? I would appreciate the help. class StatesStream(SchindlerAPIStream): """Define a custom stream.""" equipment_numbers = ['S1862300', 'S1862311', 'S1862377'] name = "states" path = f"/elevators/{equipment_number}/states" # primary_keys: t.ClassVar[list[str]] = ["id"] replication_key = None schema_filepath = SCHEMAS_DIR / f"{name}.json"
r
Dynamically from config?
Copy code
@property
    def path(self) -> str:
        return f"/elevators/{self config['equipmemt_number']}/states"
🙌 1
💪 1
👍 1