Ask Your Question

Agent Photos

asked 2015-09-04 08:54:06 -0600

updated 2015-09-08 14:52:35 -0600

I am in the midst of making a website, I have all the property info and photos pulling fine, I ran into issues when I tried to retrieve an agents photo using the following code:

echo 'Presented By: ' . $record['LA1_UserFirstName'] . ' ' . $record['LA1_UserLastName'] . "\n";

$agentPhoto = $rets->GetObject("Agent", "Photo", $record['LA1_AgentID'], "0", 1);

foreach ($agentPhoto as $aphoto){
    if($aphoto['Success'] == true) {
        echo '<div class="preview-image"  style="border: 1px solid #4C3C1B; padding: 2px;">';
        $imageSrc = $photo['Location'];
        echo '<img class="" src="'.$imageSrc.'" />';
        echo '</div>';

It seems as though no object is found this way, even though in the feed, under Agent resource, Photo is listed as one of the objects. Has anyone had better luck than I?


edit retag flag offensive close merge delete



Need to know what RETS login URL you are using and the account name to be able to help.

bwolven gravatar imagebwolven ( 2015-09-08 10:46:31 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-17 12:35:26 -0600

The user figured the issue out.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools


Asked: 2015-09-04 08:54:06 -0600

Seen: 2,877 times

Last updated: Sep 17 '15