Crates.io | realtor-rs |
lib.rs | realtor-rs |
version | 0.6.0 |
source | src |
created_at | 2021-04-20 04:24:39.643599 |
updated_at | 2021-04-30 17:41:08.601919 |
description | Unofficial client for Canadian Realtor site |
homepage | |
repository | https://github.com/tobymurray/realtor-rs |
max_upload_size | |
id | 386923 |
size | 27,942 |
An unofficial client for use with the Canadian Realtor site. Based off Foren's realtorca project.
Note: This cannot be used commercially in any capacity.
This is very much a work in progress. There are no stability promises nor any validation of functional correctness included.
Filters:
Metadata:
This provides syntactic sugar for building HTML form data specific to this one API. The output is Vec<(&'static str, String)>
. This should be flexible enough to be consumed by any HTTP client, e.g. for reqwest it might look like:
use realtor_rs::realtor::filter::builder::FilterBuilder;
use reqwest::header::USER_AGENT;
let client = reqwest::Client::new();
let request_builder = client
.post("https://api.realtor.ca/Listing.svc/PropertySearch_Post")
.form(&FilterBuilder::new().build())
.header(USER_AGENT, "realtor-rs v0.5.0")
.send();