$httpClient
$httpClient : \GuzzleHttp\ClientInterface
Class BaseClient.
$app : \EasyWeChat\Payment\Application
__construct(\EasyWeChat\Payment\Application $app)
Constructor.
\EasyWeChat\Payment\Application | $app |
request(string $endpoint, array $params = array(), string $method = 'post', array $options = array(), boolean $returnResponse = false) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Make a API request.
string | $endpoint | |
array | $params | |
string | $method | |
array | $options | |
boolean | $returnResponse |
requestRaw(string $endpoint, array $params = array(), string $method = 'post', array $options = array()) : \Psr\Http\Message\ResponseInterface
Make a request and return raw response.
string | $endpoint | |
array | $params | |
string | $method | |
array | $options |
safeRequest(string $endpoint, array $params, string $method = 'post', array $options = array()) : \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string
Request with SSL.
string | $endpoint | |
array | $params | |
string | $method | |
array | $options |