Ask Your Question
0

Agent Photos

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

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

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!

edit retag flag offensive 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 gravatar imagebwolven ( 2015-09-08 10:46:31 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

The user figured the issue out.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

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

Seen: 2,511 times

Last updated: Sep 17 '15