|
@@ -249,6 +249,18 @@
|
|
return isset($result['response'][$key]) ? $result['response'][$key] : NULL;
|
|
return isset($result['response'][$key]) ? $result['response'][$key] : NULL;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Get system stats.
|
|
|
|
+ *
|
|
|
|
+ * @return Result from the API.
|
|
|
|
+ */
|
|
|
|
+ public function getSystemStats($type, $options) {
|
|
|
|
+ if ($this->auth === FALSE) { return []; }
|
|
|
|
+
|
|
|
|
+ $result = $this->api('/system/stats/' . $type, 'GET', $options);
|
|
|
|
+ return isset($result['response']['stats']) ? $result['response']['stats'] : [];
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Set information a given user id.
|
|
* Set information a given user id.
|
|
*
|
|
*
|