__construct()
__destruct()
getHeaders()
getLastResponse()
requestsLeft()
send()
setAuth()
setConsumerAndToken()
setUserAgent()
closeConnection()
exec()
handleError()
openConnection()
preDeleteRequest()
preGetRequest()
prePostRequest()
prePutRequest()
setConnectionOptions()
$verifyHostAndPeer
$connection
$connectionOptions
$consumer
$httpStatus
$lastHeader
$response
$tmpFile
$token
Wrapper for curl to create http requests
__construct()
access | public |
---|---|
inherited_from | \Moneybird\HttpClient::__construct() |
__destruct()
access | public |
---|---|
inherited_from | \Moneybird\HttpClient::__destruct() |
getHeaders() : array
access | public |
---|---|
inherited_from | \Moneybird\HttpClient::getHeaders() |
array
getLastResponse() : string
access | public |
---|---|
inherited_from | \Moneybird\HttpClient::getLastResponse() |
string
requestsLeft() : int
inherited_from | \Moneybird\HttpClient::requestsLeft() |
---|
int
send(string $url, string $requestMethod, string $data, array $headers) : string
access | public |
---|
string
URL of request
string
(GET|POST|PUT|DELETE)
string
Data in string format
array
\Moneybird\HttpClient_Exception |
|
---|---|
\Moneybird\HttpClient_HttpStatusException |
|
\Moneybird\HttpClient_UnknownHttpStatusException |
|
\Moneybird\HttpClient_ConnectionErrorException |
string
setAuth(string $username, string $password) : \Moneybird\HttpClient
access | public |
---|
string
Username
string
Password
setConsumerAndToken(\Moneybird\Lib\OAuthConsumer $consumer, \Moneybird\Lib\OAuthConsumer $token) : \Moneybird\HttpClient_Oauth
setUserAgent(string $userAgent) : \Moneybird\HttpClient
access | public |
---|---|
inherited_from | \Moneybird\HttpClient::setUserAgent() |
string
closeConnection() : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::closeConnection() |
exec() : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::exec() |
\Moneybird\HttpClient_HttpStatusException |
|
---|---|
\Moneybird\HttpClient_UnknownHttpStatusException |
|
\Moneybird\HttpClient_ConnectionErrorException |
handleError()
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::handleError() |
\Moneybird\HttpClient_HttpStatusException |
|
---|---|
\Moneybird\HttpClient_UnknownHttpStatusException |
openConnection() : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::openConnection() |
\Moneybird\HttpClient_ConnectionErrorException |
---|
preDeleteRequest() : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::preDeleteRequest() |
preGetRequest() : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::preGetRequest() |
prePostRequest($data) : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::prePostRequest() |
prePutRequest($data) : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::prePutRequest() |
setConnectionOptions(array $options) : \Moneybird\HttpClient
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::setConnectionOptions() |
array
\Moneybird\HttpClient_ConnectionErrorException |
---|
$verifyHostAndPeer : bool
access | protected |
---|---|
static | |
inherited_from | \Moneybird\HttpClient::$$verifyHostAndPeer |
$connection : resource
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::$$connection |
$connectionOptions : array
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::$$connectionOptions |
$consumer
$httpStatus : int
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::$$httpStatus |
$lastHeader : string
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::$$lastHeader |
$response : string
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::$$response |
$tmpFile : resource
access | protected |
---|---|
inherited_from | \Moneybird\HttpClient::$$tmpFile |
$token