Resource Definitions:Agents

From API Documentation

(Difference between revisions)
Jump to: navigation, search
(GET)
Line 4: Line 4:
Returns a list of agents. Each agent record includes the following fields:
Returns a list of agents. Each agent record includes the following fields:
-
* user_id,
+
* user_id
-
* user_email,
+
* user_email
-
* user_fname,
+
* user_status_id
-
* user_lname,
+
* 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_date
 +
* user_report_daily
 +
* user_report_weekly
 +
* user_report_monthly
 +
* user_sitename
 +
* user_directory_hidden
 +
* brokerage_employee_id
=== Example Response - XML ===
=== Example Response - XML ===
Line 14: Line 43:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<agents version="1.0">
<agents version="1.0">
-
    <agent>
+
<agent>
-
        <user_id>1234</user_id>
+
  <user_id>41</user_id>
-
        <user_email>john.smith@company.com</user_email>
+
  <user_email>heidi.bonnel@westrsc.com</user_email>
-
        <user_fname>John</user_fname>
+
  <user_status_id>1</user_status_id>
-
        <user_lname>Smith</user_lname>
+
  <user_fname>Heidi</user_fname>
-
        <user_date>2010-06-25 20:00:00</user_date>
+
  <user_lname>Bonnel</user_lname>
-
  </agent>
+
  <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>
</agents>

Revision as of 19:18, 16 July 2010

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_fname":"John",
        "user_lname":"Smith",
        "user_date":"2010-06-25 20:00:00"
    },
    ...
]

Example Response - TEXT (pipe-delimited)

1234|john.smith@company.com|John|Smith|2010-06-25 20:00:00
...
Personal tools