Class AbstractClient
The abstract client interface implementation
Class AbstractClient
- APWG\API\AbstractClient implements APWG\API\ClientInterface
Direct known subclasses
APWG\API\Alerts\AlertsClient
,
APWG\API\Groups\GroupsClient
,
APWG\API\Index\IndexClient
,
APWG\API\MalIP\MalIPClient
,
APWG\API\Phish\PhishClient
,
APWG\API\ReportPhishing\ReportPhishingClient
Abstract
Namespace: APWG\API
Package: APWG\API
Copyright: Copyright (c) 2017 The Anti-Phishing Working Group
Author: Andrew Breksa andrew@apwg.org
Located at APWG/API/AbstractClient.php
Namespace: APWG\API
Package: APWG\API
Copyright: Copyright (c) 2017 The Anti-Phishing Working Group
Author: Andrew Breksa andrew@apwg.org
Located at APWG/API/AbstractClient.php
Methods summary
public
|
#
__construct( string $base_uri, string $apiKey, array $guzzleOptions = [] )
AbstractAPI constructor. |
public
array
|
|
public
|
|
public
string
|
|
public
|
|
public
Psr\Http\Message\ResponseInterface
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
array
|
|
public
|
#
setGlobalOptions( array $globalOptions )
Set the global options that are merged with every request |
public
Psr\Http\Message\ResponseInterface
|
|
public
|
Properties summary
protected
|
$client
The HTTP Client (GuzzleHTTP) |
|
protected
string
|
$apiKey
The API Key |
|
protected
array
|
$globalOptions
The options to be merged into every request |
#
[]
|
protected
string
|
$base_uri
The API base URI |
|
protected
array
|
$guzzleOptions
The default GuzzleHTTP options |
#
[
'timeout' => 5,
'curl' => [
CURLOPT_TIMEOUT => 0,
CURLOPT_TIMEOUT_MS => 0,
CURLOPT_CONNECTTIMEOUT => 0,
],
]
|
protected
Psr\Http\Message\ResponseInterface
|
$cache
The request cache, the most recent request |