Class Client
Akamai {OPEN} EdgeGrid Client for PHP
Akamai\Open\EdgeGrid\Client wraps GuzzleHttp\Client providing request authentication/signing for Akamai {OPEN} APIs.
This client works identically to GuzzleHttp\Client
However, if you try to call an Akamai {OPEN} API you must first call Akamai\Open\EdgeGrid\Client->setAuth().
- GuzzleHttp\Client
-
Akamai\Open\EdgeGrid\Client implements Psr\Log\LoggerAwareInterface
Methods summary
public
|
#
__construct( array $config = [],
\GuzzleHttp\Client-compatible constructor |
public
GuzzleHttp\Promise\PromiseInterface
|
#
requestAsync( string $method, string $uri = null, array $options = [] )
Make an Asynchronous request |
public
GuzzleHttp\Promise\PromiseInterface
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
setSimpleLog( string $filename, string $format = '{code}' )
Add logger using a given filename/format |
public static
|
#
createInstance( string $section = 'default', null $path = null, array $config = [] )
Create instance using environment (preferred) or .edgerc file (fallback) automatically. |
public static
|
|
public static
|
#
createFromEdgeRcFile( string $section = 'default', string $path = null, array $config = [] )
Factory method to create a client using credentials from |
public static
|
|
public static
|
|
protected
boolean|resource
|
|
protected
boolean|resource
|
|
protected
array|boolean|resource
|
|
protected
|
#
setAuthentication( array $config,
Set the Authentication instance |
protected
array
|
#
setAuthenticationHandler( array $config,
Set the Authentication Handler |
protected
mixed
|
|
protected
|
#
setConfigOption( string $what, mixed $value )
Set values on the private \GuzzleHttp\Client->config |
protected
array
|
#
setDebugHandler( array $options, boolean|resource|null $fp = null )
Add the Debug handler to the HandlerStack |
protected
|
#
setLogHandler( GuzzleHttp\HandlerStack $handlerStack, callable $logHandler )
Add the Log handler to the HandlerStack |
protected
array
|
#
setVerboseHandler( array $options, boolean|resource|array|null $fp = null )
Add the Verbose handler to the HandlerStack |
protected
array
|
Constants summary
string |
VERSION
|
#
'1.0.0'
|
integer |
DEFAULT_REQUEST_TIMEOUT
|
#
300
|
Properties summary
protected static
boolean|array|resource
|
$staticVerbose
Whether verbose mode is enabled
|
#
false
|
protected static
boolean|resource
|
$staticDebug
Whether debug mode is enabled |
#
false
|
protected
|
$authentication
|
|
protected
|
$verboseHandler
|
|
protected
|
$debugHandler
|
|
protected
boolean|array|resource
|
$verbose
Whether verbose mode is enabled
|
#
false
|
protected
boolean|resource
|
$debug
Whether debugging is enabled |
#
false
|
protected
boolean
|
$verboseOverride
Whether to override the static verbose setting |
#
false
|
protected
boolean
|
$debugOverride
Whether to override the static debug setting |
#
false
|
protected
callable
|
$logger
Logging Handler |