[libRETS-users] RE: LibRets GetObjctRequest
Vincent Blain
vincent_b at alamode.com
Fri Feb 23 12:25:53 CST 2007
after I sent the post regarding the call I went and read the documentation, and realized my error, next time I'll try that in reverse, documentation first, ask question after. But thank you again for you prompt reply.
Vince
-----Original Message-----
From: librets-users-bounces at crt.realtors.org [mailto:librets-users-bounces at crt.realtors.org] On Behalf Of librets-users-request at crt.realtors.org
Sent: Friday, February 23, 2007 3:00 AM
To: librets-users at crt.realtors.org
Subject: libRETS-users Digest, Vol 21, Issue 7
Send libRETS-users mailing list submissions to
librets-users at crt.realtors.org
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.crt.realtors.org/mailman/listinfo/librets-users
or, via email, send a message with subject or body 'help' to
librets-users-request at crt.realtors.org
You can reach the person managing the list at
librets-users-owner at crt.realtors.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of libRETS-users digest..."
Today's Topics:
1. LibRets GetObjctRequest (Vincent Blain)
2. Re: LibRets GetObjctRequest (Keith T. Garner)
----------------------------------------------------------------------
Message: 1
Date: Thu, 22 Feb 2007 11:48:57 -0700
From: "Vincent Blain" <vincent_b at alamode.com>
Subject: [libRETS-users] LibRets GetObjctRequest
To: <librets-users at crt.realtors.org>
Message-ID:
<80E42EEEBCC3AD459CDBCA6AD7DECB20519773 at exchangeslc.alamode.com>
Content-Type: text/plain; charset="us-ascii"
I'm trying to get just one image to come back when I try the link using
a browser it works perfect, I use the same property and I get all images
back for the specified MLS.
Why would this not work
Dim objRequest As librets.GetObjectRequest
objRequest = New GetObjectRequest("PROPERTY", "Photo")
objRequest.AddAllObjects("1234567:0:1&Location=1")
Vincent Blain
------------------------------
Message: 2
Date: Thu, 22 Feb 2007 14:13:10 -0600
From: "Keith T. Garner" <kgarner at crt.realtors.org>
Subject: Re: [libRETS-users] LibRets GetObjctRequest
To: For discussion and help for and by the users of the libRETS C++
library <librets-users at crt.realtors.org>
Message-ID: <45DDF956.3040004 at crt.realtors.org>
Content-Type: text/plain; charset=UTF-8
Vincent Blain wrote:
> I'm trying to get just one image to come back when I try the link using
> a browser it works perfect,
Follow you so far...
> I use the same property and I get all images
> back for the specified MLS.
I'm not sure what you mean by that. There is no way in RETS to get every
photo in the MLS. There is a way to get every photo for the MLS for a
specific property though. I'm going to assume you mean that.
> Why would this not work
It comes down to, you are using AddAllObject wrong. You're passing the line
from a URL, but in this case you're dealing with an API, not a web browser.
> Dim objRequest As librets.GetObjectRequest
> objRequest = New GetObjectRequest("PROPERTY", "Photo")
> objRequest.AddAllObjects("1234567:0:1&Location=1")
To retrieve all objects for a property, you probably want something like:
Dim objRequest As librets.GetObjectRequest
objRequest.AddAllObjects("1234567")
objRequest.SetLocation(true)
What you have above is only asking for images 0 and 1 (which could be the same
image, depending on the RETS server.) That code would be something like:
Dim objRequest As librets.GetObjectRequest
objRequest.AddObject("1234567", 0)
objRequest.AddObject("1234567", 1)
objRequest.SetLocation(true)
Keith
--
Keith T. Garner - Managing Director - Center for REALTOR® Technology
kgarner at realtors.org - 312-329-3294 - http://blog.realtors.org/crt
------------------------------
_______________________________________________
libRETS-users mailing list
libRETS-users at crt.realtors.org
http://mail.crt.realtors.org/mailman/listinfo/librets-users
End of libRETS-users Digest, Vol 21, Issue 7
********************************************
More information about the libRETS-users
mailing list