First time here? Check out the FAQ!
0

Agent Photos

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";
print_r($record['LO1_OrganizationName']);

$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?

Cheers!

jtanberg's avatar
jtanberg
asked 2015-09-04 08:54:06 -0500
mdean's avatar
mdean
updated 2015-09-08 14:52:35 -0500
edit flag offensive 0 remove flag close merge delete

Comments

1

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

bwolven's avatar bwolven (2015-09-08 10:46:31 -0500) edit
add a comment see more comments

1 Answer

1

The user figured the issue out.

bwolven's avatar
bwolven
answered 2015-09-17 12:35:26 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Login/Signup to Answer