Class Api
ApiAxle\Api\Api class
Wraps API related calls to the ApiAxle API
Author: Phillip Shipley <phillip@phillipshipley.com>
Located at src/ApiAxle/Api/Api.php
public
|
|
public
|
|
public
array
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
#
getKeyCharts( integer $timestart = false, integer $timeend = false, string $granularity = 'day', string $format_timeseries = 'true', string $format_timestamp = 'epoch_seconds' )
Get the most used keys for this api |
public
|
#
getKeyList( integer $from = 0, integer $to = 100, string $resolve = 'true' )
Get a list of Keys with access to this API |
public
|
|
public
|
|
public
|
#
getStats( integer $timestart = false, integer $timeend = false, string $granularity = 'minute', string $format_timeseries = 'true', string $format_timestamp = 'epoch_seconds',
Get stats for this API |
public
|
|
public
|
|
public
boolean
|
protected
|
$config | |
#
Configuration data |
protected
string
|
$name | |
#
API Name |
protected
timestamp
|
$createdAt | |
#
Optional |
protected
timestamp
|
$updatedAt | |
#
Optional |
protected
integer
|
$globalCache | 0 |
#
(default: 0) The time in seconds that every call under this API should be cached. |
protected
string
|
$endPoint | |
#
The endpoint for the API. For example; |
protected
string
|
$protocol | 'http' |
#
(default: http) The protocol for the API, whether or not to use SSL |
protected
string
|
$apiFormat | 'json' |
#
(default: json) The resulting data type of the endpoint. This is redundant at the moment but will eventually support both XML too. |
protected
integer
|
$endPointTimeout | '2' |
#
(default: 2) Seconds to wait before timing out the connection |
protected
integer
|
$endPointMaxRedirects | '2' |
#
(default: 2) Max redirects that are allowed when endpoint called. |
protected
string
|
$extractKeyRegex | |
#
(optional) Regular expression used to extract API key from url. Axle will use
the first matched grouping and then apply that as the key.
Using the |
protected
string
|
$defaultPath | |
#
(optional) An optional path part that will always be called when the API is hit. |
protected
boolean
|
$disabled | 'false' |
#
(default: false) Disable this API causing errors when it's hit |
protected
boolean
|
$strictSSL | 'true' |
#
(default: true) Set to true to require that SSL certificates be valid |