All URIs are relative to https://uclapi.com
Method | HTTP request | Description |
---|---|---|
dashboardApiAnalyticsMethodsGet | GET /dashboard/api/analytics/methods | Gets all methods for a given service and their popularity |
dashboardApiAnalyticsOauthTotalByDeptGet | GET /dashboard/api/analytics/oauth/total_by_dept | Gets the total number of users for a given app token, by department |
dashboardApiAnalyticsOauthTotalGet | GET /dashboard/api/analytics/oauth/total | Gets the total number of users for a given app token |
dashboardApiAnalyticsQuotaGet | GET /dashboard/api/analytics/quota | Gets the remaining daily quota for a given token |
dashboardApiAnalyticsServicesGet | GET /dashboard/api/analytics/services | Gets all services and their popularity |
dashboardApiAnalyticsTotalGet | GET /dashboard/api/analytics/total | Gets the total number of requests made from a given token |
InlineResponse20024 dashboardApiAnalyticsMethodsGet(opts)
Gets all methods for a given service and their popularity
import uclapi from '@uclapi/sdk';
let apiInstance = new uclapi.AnalyticsApi();
let opts = {
'service': "service_example" // String | The service to check the popularity of methods for
};
apiInstance.dashboardApiAnalyticsMethodsGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
service | String | The service to check the popularity of methods for | [optional] |
No authorization required
- Content-Type: Not defined
- Accept: application/json
InlineResponse20026 dashboardApiAnalyticsOauthTotalByDeptGet()
Gets the total number of users for a given app token, by department
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuthSecurity
let OAuthSecurity = defaultClient.authentications['OAuthSecurity'];
OAuthSecurity.accessToken = 'YOUR ACCESS TOKEN';
// Configure API key authorization: OAuthToken
let OAuthToken = defaultClient.authentications['OAuthToken'];
OAuthToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OAuthToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.AnalyticsApi();
apiInstance.dashboardApiAnalyticsOauthTotalByDeptGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
InlineResponse20025 dashboardApiAnalyticsOauthTotalGet(opts)
Gets the total number of users for a given app token
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuthSecurity
let OAuthSecurity = defaultClient.authentications['OAuthSecurity'];
OAuthSecurity.accessToken = 'YOUR ACCESS TOKEN';
// Configure API key authorization: OAuthToken
let OAuthToken = defaultClient.authentications['OAuthToken'];
OAuthToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OAuthToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.AnalyticsApi();
let opts = {
'startDate': "startDate_example", // String | Start date to filter by
'endDate': "endDate_example" // String | End date to filter by
};
apiInstance.dashboardApiAnalyticsOauthTotalGet(opts, (error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
Name | Type | Description | Notes |
---|---|---|---|
startDate | String | Start date to filter by | [optional] |
endDate | String | End date to filter by | [optional] |
- Content-Type: Not defined
- Accept: application/json
InlineResponse20022 dashboardApiAnalyticsQuotaGet()
Gets the remaining daily quota for a given token
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuthSecurity
let OAuthSecurity = defaultClient.authentications['OAuthSecurity'];
OAuthSecurity.accessToken = 'YOUR ACCESS TOKEN';
// Configure API key authorization: OAuthToken
let OAuthToken = defaultClient.authentications['OAuthToken'];
OAuthToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OAuthToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.AnalyticsApi();
apiInstance.dashboardApiAnalyticsQuotaGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
InlineResponse20023 dashboardApiAnalyticsServicesGet()
Gets all services and their popularity
import uclapi from '@uclapi/sdk';
let apiInstance = new uclapi.AnalyticsApi();
apiInstance.dashboardApiAnalyticsServicesGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
InlineResponse20021 dashboardApiAnalyticsTotalGet()
Gets the total number of requests made from a given token
import uclapi from '@uclapi/sdk';
let defaultClient = uclapi.ApiClient.instance;
// Configure OAuth2 access token for authorization: OAuthSecurity
let OAuthSecurity = defaultClient.authentications['OAuthSecurity'];
OAuthSecurity.accessToken = 'YOUR ACCESS TOKEN';
// Configure API key authorization: OAuthToken
let OAuthToken = defaultClient.authentications['OAuthToken'];
OAuthToken.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//OAuthToken.apiKeyPrefix = 'Token';
let apiInstance = new uclapi.AnalyticsApi();
apiInstance.dashboardApiAnalyticsTotalGet((error, data, response) => {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
});
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json