ApiRequester
class ApiRequester
Class ApiRequester
Constants
| BASE_URL |
|
| LOGIN_DATA |
|
Methods
static
instance()
No description
__construct()
ApiRequester constructor.
get($url, $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
No description
post($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
No description
head($url, $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
No description
patch($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
No description
put($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
No description
delete($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
No description
submit(string $url, array $fields, string $method = RequestInterface::METHOD_POST, array $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
Sends a form request.
call(string $url, string $method, array $headers = array(), string $content = '')
Sends a request.
getLastRequest()
No description
getLastResponse()
No description
getClient()
No description
getMessageFactory()
No description
Details
at line 38
static
instance()
at line 50
__construct()
ApiRequester constructor.
at line 59
get($url, $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
at line 64
post($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
at line 69
head($url, $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
at line 74
patch($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
at line 79
put($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
at line 84
delete($url, $content = '', $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
at line 99
MessageInterface
submit(string $url, array $fields, string $method = RequestInterface::METHOD_POST, array $headers = array('Accept: application/json', 'Content-Type: application/x-www-form-urlencoded'))
Sends a form request.
at line 128
MessageInterface
call(string $url, string $method, array $headers = array(), string $content = '')
Sends a request.
at line 154
MessageInterface
send(RequestInterface $request, MessageInterface $response = null)
Sends a request.