WebHook
in package
implements
IWebHook
Table of Contents
Interfaces
- IWebHook
- webhook interface
Properties
Methods
- __construct() : mixed
- get() : WebHookResponse
- post() : WebHookResponse
- postJson() : WebHookResponse
- convertResponse() : WebHookResponse
- Convert IHttpResponse to WebHookResponse for backward compatibility
Properties
$httpClient
private
IHttpClient
$httpClient
Methods
__construct()
public
__construct([IHttpClient|null $httpClient = null ]) : mixed
Parameters
- $httpClient : IHttpClient|null = null
get()
public
get(mixed $url[, array<string|int, mixed> $params = [] ]) : WebHookResponse
Parameters
- $url : mixed
- $params : array<string|int, mixed> = []
Return values
WebHookResponsepost()
public
post(mixed $url[, array<string|int, mixed> $params = [] ]) : WebHookResponse
Parameters
- $url : mixed
- $params : array<string|int, mixed> = []
Return values
WebHookResponsepostJson()
public
postJson(string $url, string $json) : WebHookResponse
Parameters
- $url : string
- $json : string
Return values
WebHookResponseconvertResponse()
Convert IHttpResponse to WebHookResponse for backward compatibility
protected
convertResponse(IHttpResponse $httpResponse) : WebHookResponse
Parameters
- $httpResponse : IHttpResponse