The Klipfolio API provides information on client resources such as dashboards, API calls per day, and users (see the PHP script, below).
The value returned for the "Dashboards" resource seems to be the number of dashboards allocated to that client. However, I'm also interested in finding the number of dashboards actually in use by that client. For instance, one of my clients has 15 dashboards allocated to it, but currently only 12 dashboards are being used.
It would be helpful to make the information on the number of dashboards actually being used by clients also available through the API, or to provide some other way of looking up this information (besides navigating to the client area and manually counting dashboards).
<?
$api_url = "https://app.klipfolio.com/api/1.0/clients/<client_id>/resources";
$ch = curl_init($api_url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$my_key = '<generated_key>';
$my_content_type = 'application/json';
$request_headers = array();
$request_headers[] = 'kf-api-key: ' . $my_key;
$request_headers[] = 'Content-Type: ' . $my_content_type;
curl_setopt($ch, CURLOPT_HTTPHEADER, $request_headers);
$response = curl_exec($ch);
curl_close($ch);
$response = json_decode($response);
var_dump($response);
?>