Resource Definitions:Agents

From API Documentation

Revision as of 19:36, 16 July 2010 by WikiSysop (Talk | contribs)
Jump to: navigation, search

The agents resource is a collection of all agent accounts associated with your company. Available methods are:

Contents

GET

Returns a list of agents. Each agent record includes the following fields:

  • user_id
  • user_email
  • user_status_id
  • user_fname
  • user_lname
  • user_company_name
  • user_email_work
  • user_website
  • user_phone_work
  • user_phone_home
  • user_phone_mobile
  • user_phone_fax
  • user_photo_path
  • user_home_street
  • user_home_suite
  • user_home_city
  • user_home_state
  • user_home_zip
  • user_company_website
  • user_company_street
  • user_company_suite
  • user_company_city
  • user_company_state
  • user_company_zip
  • user_company_logo_path
  • user_tagline
  • user_bio
  • user_date
  • user_report_daily
  • user_report_weekly
  • user_report_monthly
  • user_sitename
  • user_directory_hidden
  • brokerage_employee_id

Example Response - XML

<?xml version="1.0" encoding="UTF-8"?>
<agents version="1.0">
 <agent>
  <user_id>41</user_id>
  <user_email>heidi.bonnel@westrsc.com</user_email>
  <user_status_id>1</user_status_id>
  <user_fname>Heidi</user_fname>
  <user_lname>Bonnel</user_lname>
  <user_company_name>Coldwell Banker Residential Brokerage</user_company_name>
  <user_email_work>heidi.bonnel@westrsc.com</user_email_work>
  <user_website>www.coloradohomes.com</user_website>
  <user_phone_work>925-358-3186</user_phone_work>
  <user_phone_home></user_phone_home>
  <user_phone_mobile></user_phone_mobile>
  <user_phone_fax>925-275-3071</user_phone_fax>
  <user_photo_path>41_photo.JPG</user_photo_path>
  <user_home_street></user_home_street>
  <user_home_suite></user_home_suite>
  <user_home_city></user_home_city>
  <user_home_state></user_home_state>
  <user_home_zip></user_home_zip>
  <user_company_website>www.ColoradoHomes.com</user_company_website>
  <user_company_street>600 Grant Street</user_company_street>
  <user_company_suite>Suite 900</user_company_suite>
  <user_company_city>Denver</user_company_city>
  <user_company_state>CO</user_company_state>
  <user_company_zip>80203</user_company_zip>
  <user_company_logo_path>41_logo.jpg</user_company_logo_path>
  <user_tagline></user_tagline>
  <user_bio></user_bio>
  <user_date>2009-06-25 20:23:01</user_date>
  <user_report_daily>0</user_report_daily>
  <user_report_weekly>1</user_report_weekly>
  <user_report_monthly>0</user_report_monthly>
  <user_sitename>heidibonnel</user_sitename>
  <user_directory_hidden>0</user_directory_hidden>
  <brokerage_employee_id></brokerage_employee_id>
 </agent>
 ...
</agents>

Example Response - JSON

[
 {
  "user_id":"1234",
  "user_email":"john.smith@company.com",
  "user_status_id":"1",
  "user_fname":"John",
  "user_lname":"Smith",
  "user_company_name":"hady Acres Brokerage",
  "user_email_work":"john.smith@company.com",
  "user_website":"www.shadyacresbrokerage.com",
  "user_phone_work":"303-555-1234",
  "user_phone_home":"",
  "user_phone_mobile":"303-555-1235",
  "user_phone_fax":"303-555-1236",
  "user_photo_path":"1234_photo.jpg",
  "user_home_street":"123 Main Street",
  "user_home_suite":"",
  "user_home_city":"Shady Acres",
  "user_home_state":"CO",
  "user_home_zip":"12345",
  "user_company_website":"www.shadyacresbrokerage.com",
  "user_company_street":"124 Main Street",
  "user_company_suite":"5",
  "user_company_city":"Shady Acres",
  "user_company_state":"CO",
  "user_company_zip":"12345",
  "user_company_logo_path":"sab_logo.gif",
  "user_tagline":"",
  "user_bio":"",
  "user_date":"2009-07-13 11:25:23",
  "user_report_daily":"0",
  "user_report_weekly":"1",
  "user_report_monthly":"0",
  "user_sitename":"",
  "user_directory_hidden":"0",
  "brokerage_employee_id":""
 },
 ...
]

Example Response - TEXT (pipe-delimited)

user_id|user_email|user_status_id|user_fname|user_lname|user_company_name|user_email_work|user_website|user_phone_work|user_phone_home|user_phone_mobile|user_phone_fax|user_photo_path|user_home_street|user_home_suite|user_home_city|user_home_state|user_home_zip|user_company_website|user_company_street|user_company_suite|user_company_city|user_company_state|user_company_zip|user_company_logo_path|user_tagline|user_bio|user_date|user_report_daily|user_report_weekly|user_report_monthly|user_sitename|user_directory_hidden|brokerage_employee_id 1234|john.smith@company.com|1|John|Smith|Shady Acres Brokerage|john.smith@company.com|www.shadyacresbrokerage.com|303-555-1234||303-555-1235|303-555-1236|1234_photo.jpg|123 Main Street||Shady Acres|CO|12345|www.shadyacresbrokerage.com|124 Main Street|5|Shady Acres|CO|12345|sab_logo.gif|||2009-07-13 11:25:23|0|1|0||0| ... </source>

Personal tools