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 display
delta - if true, return delta values instead of absolute values
arg0 - optional graph argument
arg0_resolved - optional graph argument, resolved to an ID
user_id - for private graphs, the user ID
user_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)