A WordPress API library for accessing the IDX Broker API.
| version | 1.1.0 |
|---|---|
| link | API Documentation |
| package | WP-API-Libraries\WP-IDX-Broker-API |
| author | Santiago Garza |
| author | imFORZA |
__construct(string $api_key, string $partner_key= null, string $outputtype= 'json', string $apiversion= '1.4.0') : void
| access | public |
|---|
stringIDX Broker API key.
stringAncillarykey.
stringXML or JSON.
stringVersion of API to use.
build_request(string $route, array $fields = array()) : \IdxBrokerAPI
| fluent | This method is part of a fluent interface and will return the same instance |
|---|
stringThe route to make the call to.
arrayArray containing the http method and body of call. Optional for GET requests.
\IdxBrokerAPIIdxBrokerAPI Object.delete_clients_savedlink(string $saved_links_id) : mixed
| api | DELETE |
|---|---|
| see | Documentation. |
stringThe ID of a client's saved link.
mixedNothing on success.delete_clients_supplemental(string $listing_id) : mixed
This method is to be used at your own risk. We will NOT be held accountable for programmatic errors in your code or the improper use of search values or options within said values resulting in deletion of supplemental properties.
| api | DELETE |
|---|---|
| see | Documentation. |
stringThe listingID of a supplmental property.
mixedNothing on success.delete_clients_wrappercache() : mixed
This method is to be used at your own risk. We will NOT be held accountable for programmatic errors in your code or the improper use of search values or options within said values resulting in deletion of supplemental properties.
| api | DELETE |
|---|---|
| see | Documentation. |
mixedNothing on success.delete_lead(integer $lead_id) : mixed
This method is to be used at your own risk. We will NOT be held accountable for programmatic errors in your code or the improper use of search values or options within said values resulting in deletion of leads.
| api | DELETE |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
mixedNothing on success.delete_leads_note(integer $lead_id, integer $note_id) : mixed
| api | DELETE |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of the note to delete.
mixedNothing on success.delete_leads_property(integer $lead_id, integer $property_id) : mixed
| api | DELETE |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of a property to delete.
mixedNothing on success.delete_leads_search(integer $lead_id, integer $search_id) : mixed
| api | DELETE |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of a saved search to delete.
mixedNothing on success.get_clients_accounttype() : string
get_clients_agents(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation. |
arrayQuery args to send in to API call.
arrayAll agents on the account or those matching filter values.get_clients_apiversion() : array
get_clients_cities(string $list_id= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringCity list id.
stringarrayA string or an array of strings of return field names.
arrayAll cities in a given list or, if no list ID is provided, a list of list IDs.get_clients_citieslistname() : array
get_clients_counties(string $list_id= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringIf no ID is given a list of IDs is returned.
stringarrayA string or an array of strings of fields to return in the output..
arrayAll counties in a given list or, if no list ID is provided, a list of list IDs.get_clients_countieslistname() : array
get_clients_featured(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation. |
arrayQuery args to send in to API call.
arrayFeatured properties on the account.get_clients_listallowedfields(string $idx_id, string $listing_id) : array
Note: Valid ancillarykey is required in the request header.
| api | GET |
|---|---|
| see | Documentation. |
stringThe idxID of MLS.
stringThe listing ID.
arrayList of fields that are returnable for the listingID.get_clients_listcomponents() : array
get_clients_listing(string $idx_id, string $listing_id, string $rf= '', boolean $disclaimers= '') : array
Note: Valid ancillarykey is required in the request header.
| api | GET |
|---|---|
| see | Documentation. |
stringThe idxID of MLS.
stringThe listing ID.
stringArray of fields to return in the output.
booleanInclude MLS disclaimer/courtesy in the response.
arrayList of fields that are returnable for the listingID.get_clients_listmethods() : array
get_clients_offices(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation. |
arrayQuery args to send in to API call.
arrayAll offices on the account or those matching filter values.get_clients_postalcodes(string $list_id= '', array $args= array()) : array
Note: This method was previously called as "zipcodes" but was changed to keep API format more international. Calls to "zipcodes" will be forwarded to "postalcodes" and "zipcodes" is listed as deprecated in the method list.
| api | GET |
|---|---|
| see | Documentation. |
stringIf no ID is given a list of IDs is returned.
arrayQuery args to send in to API call.
arrayAll postalcodes in a given list or, if no list ID is provided, a list of list IDs.get_clients_postalcodeslistname() : array
get_clients_properties(string $saved_links_id, array $args = array()) : array
Note: Valid ancillarykey is required in the request header.
| api | GET |
|---|---|
| see | Documentation. |
stringThe ID of a client's saved link.
arrayQuery args to send in to API call.
arrayAll property results for a provided Saved Link ID.get_clients_savedlinks(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation. |
arrayQuery args to send in to API call.
arrayAll saved links on the account.get_clients_searchquery(array $args = array()) : array
Note: Valid ancillarykey is required in the request header.
| api | GET |
|---|---|
| see | Documentation. |
arrayQuery args to send in to API call.
arrayAll available APIs/Components.get_clients_soldpending(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation. |
arrayQuery args to send in to API call.
arraySold/pending properties on the account.get_clients_supplemental(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation. |
arrayQuery args to send in to API call.
arraySupplemental properties on the account.get_clients_systemlinks(string|array $rf = '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringarrayString or array of fields to return in the output.
arrayThe name, unique ID, and URL for all system links on the account. Additionally there
is a boolean named systemresults. If true this is a property results page that requires
additional parameters. This means the url can be useful when dynamically building
results page links but should not be linked to directly. When a client has more than
one MLS on their account, listings for search pages that can vary by MLS ID will
include a subpages array element.get_clients_zipcodes(string $list_id= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringIf no ID is given a list of IDs is returned.
stringarrayString or array of fields to return in the output.
arrayAll zipcodes in a given list or, if no list ID is provided, a list of list IDs..get_idx_domain() : array
arrayArray containing domain 'scheme' & 'url'.get_leads(string $lead_id= '', array $args= array()) : array
| api | GET |
|---|---|
| see | Documentation. |
stringIf no ID is given a list of IDs is returned.
arrayQuery args to send in to API call.
arrayIf a lead ID is provided detailed information about that lead is returned. Otherwise
simple information about all leads is returned.get_leads_listcomponents() : array
get_leads_listmethods() : array
get_leads_note(integer $lead_id, integer $note_id= '', array $args= array()) : array
| api | GET |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of the note to delete.
arrayQuery args to send in to API call.
arrayLead note information. If no note ID is sent all notes for the lead are returned. If a
note ID is passed only the one note is returned.get_leads_property(integer $lead_id, integer $property_id= '', array $args= array()) : array
| api | GET |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of a lead's saved property.
arrayQuery args to send in to API call.
arrayIf no property ID is passed all properties are returned. If a property ID is passed
only the information for that specified property is returned.get_leads_search(integer $lead_id, integer $search_id= '', array $args= array()) : array
| api | GET |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of a lead's search.
arrayQuery args to send in to API call.
arrayAn array with 2 keys. The key searchInformation that contains all existing saved search
information. The key info will return messages about any returned saved search. Currently
this info will tell you if any search's advanced fields are not valid in the IDX system.get_leadtraffic(string $lead_id, array $args = array()) : array
For bandwidth and memory considerations there is a limit of 5,000 on the number of lead traffics that can be returned in any single request.
| api | GET |
|---|---|
| see | Documentation. |
stringIf no ID is given a list of IDs is returned.
arrayQuery args to send in to API call.
arrayThe applicable client account ID, date, lead ID, IP , page, and referrer.get_mls_age(string $idx_id, string|array $rf = '') : array
Note: dates/times given are UTC.
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000 .
stringarrayString or array of fields to return in the output.
arrayAn array of timestamps for last downloaded, last processes and last images gathered.get_mls_approvedmls(string|array $rf = '') : array
Note: This method was previously camelcased as "approvedMLS" but was made lower case to fit the API naming convention. Calls to "approvedMLS" will be forwarded to "approvedmls" and "approvedMLS" is listed as deprecated in the method list.
| api | GET |
|---|---|
| see | Documentation. |
stringarrayString or array of fields to return in the output.
arrayA list of IDs and names for all MLSs approved for display on the client account.get_mls_cities(string $idx_id, string $filter_field= '', string $filter_value= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000 .
stringThe field to use when filtering output. Allowed values: "cityID, cityName, stateAbrv, mlsPtID".
stringThe value by which to filter. Conditional on use of filterField.
stringarrayString or array of fields to return in the output.
arrayAvailable cities along with applicable city ID, property type, and state as
well as a count of the number of occurrences for each value.get_mls_counties(string $idx_id, string $filter_field= '', string $filter_value= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
stringThe field to use when filtering output. Allowed values: "countyID, countyName, stateAbrv, mlsPtID".
stringThe value by which to filter. Conditional on use of filterField.
stringarrayString or array of fields to return in the output.
arrayAvailable counties along with applicable county ID, property type, and state
as well as a count of the number of occurrences of each value.get_mls_listcomponents() : array
get_mls_listmethods() : array
get_mls_postalcodes(string $idx_id, string $filter_field= '', string $filter_value= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
stringThe field to use when filtering output. Allowed values: "id, stateAbrv, mlsPtID".
stringThe value by which to filter. Conditional on use of filterField.
stringarrayString or array of fields to return in the output.
arrayAvailable postalcodes along with applicable property type and state as well
as a count of the number of occurrences of each value.get_mls_prices(string $idx_id, string|array $rf = '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
stringarrayString or array of fields to return in the output.
arrayA multidimensional array with the total sum and the sum for each property type.get_mls_propertycount(string $idx_id, string $count_type= '', integer $count_specifier= '') : integer
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
stringSpecify if you are looking for the count of a city, county, or zipcode. Allowed values: "city", "county", "zipcode".
integerThe numeric city ID, county ID, or zipcode for which you want to get a property count.
integerAn integer count of the number of properties.get_mls_propertytypes(string $idx_id, string $filter_field= '', string $filter_value= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
stringThe field to use when filtering output. Allowed values: "mlsPtID, mlsPropertyType".
stringThe value by which to filter. Conditional on use of filterField.
stringarrayString or array of fields to return in the output.
arrayAn array of property type information including MLS property type ID, MLS
property type name, parent property type, and subtypes.get_mls_searchfields(string $idx_id, string $filter_field= '', string $filter_value= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
stringThe field to use when filtering output. Allowed values: "mlsPtID, parentPtID".
stringThe value by which to filter. Conditional on use of filterField.
stringarrayString or array of fields to return in the output.
arrayAn array containing all MLS fields that are searchable according to MLS rules
and IDX guidelines. Array contains the field's name (which is the field to
be used as a key when performing a search), the display name (as should be
displayed in a search form), and both the mlsPtID and parentPtID to which
the field belongs.get_mls_searchfieldvalues(string $idx_id, integer $mls_pt_id, string $name) : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
integerThe IDX assigned ID of the MLS property type(s). See the propertytypes method in this API/Component for a lookup of property type IDs.
stringMls field name - the IDX assigned name of the MLS field name. See the searchfields for the list of searchable fields.
arrayAn array containing all the values for the given mls field.get_mls_zipcodes(string $idx_id, string $filter_field= '', string $filter_value= '', string|array $rf= '') : array
| api | GET |
|---|---|
| see | Documentation. |
stringFormat: x000.
stringThe field to use when filtering output. Allowed values: "mlsPtID, parentPtID".
stringThe value by which to filter. Conditional on use of filterField.
stringarrayString or array of fields to return in the output.
arrayAvailable zipcodes along with applicable property type and state as well as
a count of the number of occurrences of each value.get_partners_aggregatedagents(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayAll available agents.get_partners_aggregatedfeatured(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayList of featured MLS properties for each client.get_partners_aggregatedleads(array $args = array()) : array
For bandwidth and memory considerations there is a limit of 5,000 on the number of leads that can be returned in any single request. Even if a full week of data is requested this limit will only be encountered if your clients have a combined average 30+ leads created, updated, or active per hour (as such it will be most common when requesting leads based on last property update date). If this limit is exceeded a 413 -Requested Entity Too Large error is returned. If encountered a smaller interval will need to be used.
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayThe applicable client account ID, lead ID, first name, last name, email address, address, city,
state/province, country, zipCode, phone number, ID of the agent assigned, email format (html or
plain text), disabled status (y/n), allowed to log in to their account (y/n), will receive property
updates (y/n), subscribe date, last edited, last login date, last property update date, last
activity type, and last activity date.get_partners_aggregatedleadtraffic(array $args = array()) : array
Note: For bandwidth and memory considerations there is a limit of 5,000 on the number of searches that can be returned in any single request.
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayThe applicable client account ID, date, lead ID, IP , page, and referrer.get_partners_aggregatedlistingstatus(array $args = array()) : array
This is helpful if you need to know when previously gathered featured properties have left the market.
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayMLS listings along with their statuses.get_partners_aggregatedproperties(array $args = array()) : array
For bandwidth and memory considerations there is a limit of 5,000 on the number of searches that can be returned in any single request.
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arraySearch ID, the applicable client account ID, lead ID, page ID, search name, search parameters, lead
will receive property updates (y/n), created date, last edited date.get_partners_aggregatedsearches(array $args = array()) : array
For bandwidth and memory considerations there is a limit of 5,000 on the number of searches that can be returned in any single request.
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arraySearch ID, the applicable client account ID, lead ID, page ID, search name, search parameters, lead
will receive property updates (y/n), created date, last edited date.get_partners_aggregatedsoldpending(array $args = array()) : array
Output fields may or may not be populated depending on how the information was entered into the IDX system.
We are planning to add the ability to query by the date the property left the market and, for sold listings, the date it was sold in a future update.
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayList of soldpending properties for each client.get_partners_aggregatedsupplemental(array $args = array()) : array
Output fields may or may not be populated depending on how the information was entered into the IDX system.
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayList of supplemental (non-MLS) properties for each client.get_partners_apiversion() : string
get_partners_availablemls() : array
get_partners_clients(array $args = array()) : array
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayQuery args to send in to API call.
arrayThe account ID, company name, display name, account status, and current API key of each client or
clients matching the filter values.get_partners_listcomponents() : array
get_partners_listmethods() : array
| api | GET |
|---|---|
| see | Documentation |
| access | public |
arrayBasic information about all available methods in this API.get_partners_propertytypes(string $idx_id= '', string|array $rf= '') : array
Note: The IDX property types are those used for multiple MLS searches and are equivalent to the property types used in the original IDX product. The data returned is structured as:
idxPropTypes
| api | GET |
|---|---|
| see | Documentation |
stringThe IDX ID of the MLS from which you need property type information. If no IDX ID is specified then only the IDX property types (parentPtID) will be returned.
stringarrayA string or an array of strings of return field names.
arrayAn array containing the IDX property types and, if an IDX ID has been provided,
the MLS's property types and their IDs.get_specialtypartner_pricing() : array
Note: This method is only available for specialty billing partners.
| api | GET |
|---|---|
| see | Documentation. |
arrayIDX account and agent/office add-on pricing.post_bulkleads(array $data = array()) : mixed
Note: Each lead field should be passed as an indexed array starting at and going to, at most, 100. There must not be any gaps. LeadID is required for each lead to be updated
Data Example: $data = array( 'id[0]' = 1, 'firstName[0]' => 'John', 'lastName[0]' => 'Doe', 'email[0]' => 'john@example.com', 'id[1]' = 2, 'firstName[1]' => 'Aaron', 'lastName[1]' => 'Aaronson', 'email[1]' => 'aaron@example.com' );
| api | POST |
|---|---|
| see | Documentation. |
arraySupplemental fields to update.
mixedIf a leads are successfully updated the updated lead IDs will be returned. If no POST
data is supplied then a list of updatable fields with format information is returned.post_clients_dynamicwrapperurl(string $dynamic_url, integer $savedlink_id= '', integer $page_id= '') : mixed
| api | POST |
|---|---|
| see | Documentation. |
stringDynamic wrapper url.
integerSaved link ID if setting dynamic wrapper url for a specific saved link.
integerPage ID if setting dynamic wrapper url for a specific page.
mixedNo data returned on success.post_clients_savedlink(string $saved_links_id, array $data = array()) : mixed
This method is to be used at your own risk. We will NOT be held accountable for programmatic errors in your code or the improper use of search values or options within said values resulting in broken saved links.
Note: The updatable fields need to be in a URL encoded, ampersand delineated query string format.
Data Example: $data = array( 'linkName' => 'Good_side_of_tracks', 'pageTitle' => 'Good_side_of_tracks', 'linkTitle' => 'Good_side_of_tracks', 'queryString' => array('idxID' => 'a001', 'hp' => '200000') );
| api | POST |
|---|---|
| see | Documentation. |
stringThe ID of a client's saved link.
arraySavedlink fields to update.
mixedIf no POST data is supplied, then a list of updatable fields with format
information is returned, otherwise on success 204 is returned.post_clients_supplemental(string $listing_id, array $data = array()) : mixed
Note: if updating images, existing images are deleted and the new images are inserted instead for the listing.
Data Example: $data = array( 'likeIdxID' => 'a001', 'likeMlsPtID' => '1', 'images' => array('http://example.com/image1.jpg', 'http://example.com/image2.jpg') );
| api | POST |
|---|---|
| see | Documentation. |
stringThe supplemental listing ID.
arraySupplemental fields to update.
mixedIf no POST data is supplied, then a list of updatable fields with format information
is returned, otherwise on success 204 is returned.post_lead(integer $lead_id, array $data) : mixed
Data Example: $data = array( 'firstName' => 'John', 'lastName' => 'Doe', 'email' => 'john@example.com' );
| api | POST |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
arrayLead fields to update.
mixedIf a leads are successfully updated the updated lead IDs will be returned. If no POST
data is supplied then a list of updatable fields with format information is returned.post_leads_note(integer $lead_id, integer $note_id, array $data = array()) : mixed
Data Example: $data = array( 'note' => 'Test note' );
| api | POST |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of the note to update.
arrayNote data.
mixedIf no data is supplied then a list of updatable fields with format information is returned.post_leads_property(integer $lead_id, integer $property_id, array $data = array()) : mixed
Data Example:
$data = array( 'propertyName' => 'Test Property', 'property' => array('idxID' => 'a001', 'listingID' => '345678') );
| api | POST |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of the note to update.
arrayProperty data.
mixedIf no data is supplied then a list of updatable fields with format information is returned.post_leads_search(integer $lead_id, integer $search_id, array $data = array()) : mixed
Data Example:
$data = array( 'searchName' => 'Test Search', 'search' => array('idxID' => 'a001', 'hp' => '200000') );
| api | POST |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
integerThe ID of a lead's saved search.
arraySearch data.
mixedIf a lead search is successfully created the new searches' ID will be returned. If no
data is supplied then a list of updatable fields with format information is returned.put_bulkleads(array $data = array()) : array
Note: Each lead field should be passed as an indexed array starting at and going to, at most, 100. There must not be any gaps.
Data Example: $data = array( 'firstName[0]' => 'John', 'lastName[0]' => 'Doe', 'email[0]' => 'john@example.com', 'firstName[1]' => 'Aaron', 'lastName[1]' => 'Aaronson', 'email[1]' => 'aaron@example.com' );
| api | PUT |
|---|---|
| see | Documentation. |
arraySupplemental fields to update.
arrayIf a lead is successfully created the new lead IDs will be returned. If no PUT data is
supplied then a list of updatable fields with format information is returned.put_clients_savedlink(array $data = array()) : mixed
Note: The updatable fields need to be in a URL encoded, ampersand delineated query string format. This action is not allowed if the client has more than 1000 saved links.
Data Example: $data = array( 'linkName' => 'Good_side_of_tracks', 'pageTitle' => 'Good_side_of_tracks', 'linkTitle' => 'Good_side_of_tracks', 'queryString' => array('idxID' => 'a001', 'hp' => '200000') );
| api | PUT |
|---|---|
| see | Documentation. |
arraySavedlink fields to create.
mixedIf a client saved link is successfully created, the new saved link's ID will be
returned. If no PUT data is supplied, then a list of updatable fields with format
information is returned.put_clients_supplemental(array $data = array()) : mixed
Note: likeIdxID and likeMlsPtID fields are required.
Data Example: $data = array( 'likeIdxID' => 'a001', 'likeMlsPtID' => '1', 'images' => array('http://example.com/image1.jpg', 'http://example.com/image2.jpg') );
| api | PUT |
|---|---|
| see | Documentation. |
arraySupplemental fields to create.
mixedIf a supplemental listing is successfully created, the new supplemental listing ID will be
returned. If no PUT data is supplied, then a list of updatable fields with format
information is returned.put_lead(array $data = array()) : mixed
Special Note: Currently the API cannot differentiate between a lead rejected due to server error or one rejected due to bad email address. The lead system requires email addresses that are correctly formatted to cut down on garbage accounts, and they need to have a valid MX record. Most 500 error from this method are a result of bad email addresses. In future versions we will differentiate the error and make the MX record requirement optional.
Data Example: $data = array( 'firstName' => 'John', 'lastName' => 'Doe', 'email' => 'john@example.com' );
| api | PUT |
|---|---|
| see | Documentation. |
arrayLead fields to create.
mixedIf a lead is successfully created the new lead's ID will be returned. If no PUT data is
supplied then a list of updatable fields with format information is returned.put_leads_note(integer $lead_id, array $data = array()) : mixed
Data Example: $data = array( 'note' => 'Test note' );
| api | POST |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
arrayNote data.
mixedIf a note is successfully created the new notes's ID will be returned. If no PUT data is
supplied then a list of updatable fields with format information is returned.put_leads_property(integer $lead_id, array $data = array()) : mixed
Data Example:
$data = array( 'propertyName' => 'Test Property', 'property' => array('idxID' => 'a001', 'listingID' => '345678') );
| api | PUT |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
arrayProperty data.
mixedIf a saved property is successfully created the new property's ID will be returned.
If no data is supplied then a list of updatable fields with format information is
returned.put_leads_search(integer $lead_id, array $data = array()) : mixed
Data Example:
$data = array( 'searchName' => 'Test Search', 'search' => array('idxID' => 'a001', 'hp' => '200000') );
| api | PUT |
|---|---|
| see | Documentation. |
integerThe ID of a lead.
arraySearch data.
mixedIf a lead search is successfully created the new searches' ID will be returned. If no
data is supplied then a list of updatable fields with format information is returned.put_specialtypartner_subscriber(array $data = array()) : mixed
Note: this method is only available for specialty billing partners.
Data Example:
$data = array( 'product' => 'lite', 'firstName' => 'Test', 'lastName' => 'Test', 'companyName' => 'Test Company', 'address' => '1000 E Test street', 'city' => 'Eugene', 'state' => 'OR', // Use XX for international. 'zipcode' => 97402, 'primaryPhone' => '5555555555', 'email' => 'test@gmail.com', 'mlsIDList' => 'a001,a002', 'agreeToTermsOfService' => 'yes' );
| api | PUT |
|---|---|
| see | Documentation. |
arraySubscriber data.
mixedNothing on successrequest() : array
| access | public |
|---|
arrayArray of API results.response_code_msg(string $code = '') : string
stringResponse code to get message from.
stringMessage corresponding to response code sent in.check_usage() : string
stringAPI hourly usage count.get_response_code()
$code : integer
$args : Array
array()(default value: array())
| access | protected |
|---|
$response : string
$route : string
$api_url : string
'https://api.idxbroker.com/'