- Apis\Api
- Apis\CachedApi
- Core\Apis\Graph
- Apis\CachedApi
class Core\Apis \ Graph
API to get content rendered in graphs.
- Parameters:
-
type- graph type, e.g. 'statistics_queue'days- number of days of data to displaydelta- if true, return delta values instead of absolute valuesarg0- optional graph argumentarg0_resolved- optional graph argument, resolved to an IDuser_id- for private graphs, the user IDuser_hash- for private graphs, the calculated user hash to secure the request
Method Summary
| Name | Description |
|---|---|
| getConfig() | |
| getEndpoint() | |
| getHash($arguments) | Return a 32-character hash from the given argmuents so that it can be cached. |
| getJSON($arguments) | Compile the JSON with the given arguments, as parsed from the #getEndpoint() string. |
Inherited Method Summary
| Name | Description |
|---|---|
| render($arguments) |
Try and get the JSON result for this API, and return either {success: true: result: $json} or {success: false, error: $message} if an exception occured. (from CachedApi)
|
| getAge() | How long are API calls cached? (from CachedApi) |
| getCached($arguments) | (from CachedApi) |
| renderJSON($arguments) | (from CachedApi) |
public function getConfig()
public function getEndpoint()
- Overrides:
- getEndpoint()
- Returns:
e.g. "/api/v1/currency/:currency"
public function getHash($arguments)
Return a 32-character hash from the given argmuents so that it can be cached. (from getHash)
- Overrides:
- getHash($arguments)
public function getJSON($arguments)
Compile the JSON with the given arguments, as parsed from the #getEndpoint() string. (from getJSON)
- Overrides:
- getJSON($arguments)