Class RestClientModel
REST client model uses internally "curl" or cake HttpSocket if "curl" module not available
- Model
-
AppModel
-
BEAppModel
-
RestClientModel
Methods summary
public
|
|
public
|
|
public
|
#
setHeaders( array $headers = array() )
Set headers for a call (get/post). After the call, reset headers |
public
|
|
public
|
|
public
|
#
request( string $uri, string $method = "GET", array $params = array(), string $outType = null, boolean $camelize = true, array $headers = array() )
Do a generic HTTP request using custom $method and returns output response. Output may be parsed (only xml/json) using $outType argument ("xml" or "json"). |
private
|
|
private
string
|
Methods inherited from BEAppModel
am(),
buildQueryStatement(),
checkDate(),
checkDuration(),
checkFloat(),
checkNumber(),
containLevel(),
email(),
fieldsString(),
findObjects(),
findObjectsAfterFilter(),
findObjectsClauses(),
findObjectsCount(),
getBindingsLevel(),
getDefaultDateFormat(),
getDriver(),
getEndQuote(),
getLimitClausole(),
getStartQuote(),
setBindingsLevel(),
setupDbParams(),
toolbar()
Methods inherited from AppModel
Properties summary
public
boolean
|
$useTable
|
#
false
|
public
boolean
|
$httpReady
|
#
false
|
public
|
$client
|
|
public
boolean
|
$useCurl
|
#
false
|
public
array
|
$callHeaders
|
#
array()
|
public
|
$lastStatusCode
|
#
null
|
protected
array
|
$requestOptions
options used when a request (get/post) is done |
#
array()
|