Class Key
ApiAxle\Api\Key class
Wraps Key related calls to the ApiAxle API
Author: Phillip Shipley <phillip@phillipshipley.com>
Located at src/ApiAxle/Api/Key.php
public
|
|
public
string
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
#
getDataForApiCall( )
Get an array of only the fields needed for an API call (ignore created/updated, etc.) |
public
|
|
public
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
type
|
#
getStats( integer $timestart = false, integer $timeend = false, string $granularity = 'minute', string $format_timeseries = 'true', string $format_timestamp = 'epoch_seconds',
Get real time hits for a key |
public
|
|
public
|
|
public
boolean
|
protected
|
$config | |
#
Configuration data |
protected
string
|
$key | |
#
The actual api key |
protected
integer
|
$createdAt | |
#
Created at timestamp. Set automatically when creating a new key. |
protected
integer
|
$updatedAt | |
#
Updated at timestamp. Set automatically whenever updating a key. |
protected
string
|
$sharedSecret | |
#
(optional) A shared secret which is used when signing a call to the api. |
protected
integer
|
$qpd | 172800 |
#
(default: 172800) Number of queries that can be called per day. Set to
|
protected
integer
|
$qps | 2 |
#
(default: 2) Number of queries that can be called per second. Set to
|
protected
array
|
$forApis | |
#
(optional) Names of the Apis that this key belongs to. |
protected
boolean
|
$disabled | false |
#
(default: false) Disable this API causing errors when it's hit. |
protected
string
|
$isNSA | 'false' |
#
(default: false) If you're the NSA set this flag to true and you'll activate GOD mode getting you into any API regardless of your being linked to it or not. |