CurlCaller

Implements \EasyTransac\Core\ICaller

Caller using Curl

author

klyde

package

Default

Methods

__construct

__construct() 

__destruct

__destruct() 

Add headers to the headers list

addHeaders(array $headers) 
see \EasyTransac\Core\ICaller::addHeaders()

Arguments

$headers

array

Launch a call and return the result if there is no error

call(String $url, array $params = array()) 
see \EasyTransac\Core\ICaller::call()

Arguments

$url

String

$params

array

Returns headers

getHeaders() : array

Init the curl caller with options we need to contact safely the EasyTransac API

initCurl() 

Return true if this caller method is available

isAvailable() 

Returns true is available

isTLSv12Available() 
see \EasyTransac\Core\ICaller::isTLS12()

Defines the headers for calls

setHeaders(array $headers) 
see \EasyTransac\Core\ICaller::setHeaders()

Arguments

$headers

array

Defines the timeout of the request

setTimeout( $second) 

Properties

curlInstance

curlInstance : 

Type(s)

timeout

timeout : 

Type(s)

headers

headers : 

Type(s)