estately / rets

A pure-ruby library for fetching data from RETS servers
https://github.com/estately/rets
127 stars 94 forks source link

Retrieve photos in bulk #223

Open CapitalP222 opened 4 years ago

CapitalP222 commented 4 years ago

Regarding your photo example:

# Get all photos (*) for MLS ID 'mls_id'
# Pass :object_id (ie '0', '1,2', wildcard '*')
# The pass :resource (Property, Agent, MetaData, ...), :object_type (Photo, PhotoLarge), :rescource_id (ID of agent, MLS, ...)
photos = client.objects '*', {
  resource: 'Property',
  object_type: 'Photo',
  resource_id: 'mls_id'
}

1 - Is there any way to get one response for multiple records? (based on mls_ids or other categories)

I have tried using commas, colons and semicolon to separate different "mls_ids" but it doesn't work

2 - what do the values represent for object_id?