Class APIClient
Direct known subclasses
Methods summary
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
|
public
|
|
public
boolean
|
#
getListings( [type] $args )
Returns all listings for the currently selected market 1st step for a full IDX app. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean|array
|
#
getMarketsMeta( $args )
Returns markets schema https://slipstream-test.homejunction.com/v1/docs/markets#get |
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
makeAPIRequest( $method, $uri, $args = array(), $data = array(), $is_auth_request = false, $a_retry = false )
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
Properties summary
protected
|
$site_url
|
#
null
|
protected
|
$licenseKey
|
#
null
|
protected
boolean
|
$cacheTransport
|
#
false
|
public
string
|
$api_base
|
#
"https://slipstream.homejunction.com"
|
public
string
|
$api_dev_base
|
#
"https://slipstream-test.homejunction.com"
|
protected
boolean
|
$is_staging
|
#
false
|
public
|
$last_error_code
|
#
null
|
public
|
$last_error_mess
|
#
null
|
public
|
$last_token
|
#
null
|
public
|
$last_token_expires
|
#
null
|
protected
string
|
$token_header
|
#
'HJI-Slipstream-Token'
|
protected
string
|
$productName
|
#
'hji-wordpress'
|
protected
|
$ch
|
#
null
|
protected
|
$debug_log
|
|
protected
boolean
|
$debug_mode
|
#
false
|
protected
|
$application_name
|
#
null
|
public
string
|
$api_version
|
#
"v1"
|
protected
boolean
|
$authData
|
#
false
|
protected
array
|
$error_messages
|
#
array(
'200' => 'Code: 200. Success.',
'400' => 'Code: 400. Your request is invalid. Typically this is because you are missing a required parameter.',
'401' => 'Code: 401. Invalid license key.',
'403' => 'Code: 403. You attempted to access a restricted resource.',
'404' => 'Code: 404. These aren\'t the droids you\'re looking for. Move along!',
'500' => 'Code: 500. Internal server error.',
'503' => 'Code: 503. Service unavailable.'
)
|
public
integer
|
$last_count
|
#
0
|
public
integer
|
$page_size
|
#
0
|
public
integer
|
$total_pages
|
#
0
|
public
integer
|
$current_page
|
#
0
|