import 'package:cloudflare_dart/api.dart';All URIs are relative to https://api.cloudflare.com/client/v4
| Method | HTTP request | Description |
|---|---|---|
| radarGetReportsDatasetDownload | GET /radar/datasets/{alias} | Get dataset CSV stream |
| radarGetReportsDatasets | GET /radar/datasets | List datasets |
| radarPostReportsDatasetDownloadUrl | POST /radar/datasets/download | Get dataset download URL |
String radarGetReportsDatasetDownload(alias)
Get dataset CSV stream
Retrieves the CSV content of a given dataset by alias or ID. When getting the content by alias the latest dataset is returned, optionally filtered by the latest available at a given date.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getRadarDatasetsApi();
final String alias = ranking_top_1000; // String | Dataset alias or ID.
try {
final response = api.radarGetReportsDatasetDownload(alias);
print(response);
} catch on DioException (e) {
print('Exception when calling RadarDatasetsApi->radarGetReportsDatasetDownload: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| alias | String | Dataset alias or ID. |
String
- Content-Type: Not defined
- Accept: text/csv, application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RadarGetReportsDatasets200Response radarGetReportsDatasets(limit, offset, datasetType, date, format)
List datasets
Retrieves a list of datasets.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getRadarDatasetsApi();
final int limit = 5; // int | Limits the number of objects returned in the response.
final int offset = 56; // int | Skips the specified number of objects before fetching the results.
final String datasetType = RANKING_BUCKET; // String | Filters results by dataset type.
final Date date = Thu Sep 19 02:00:00 CEST 2024; // Date | Filters results by the specified date.
final String format = json; // String | Format in which results will be returned.
try {
final response = api.radarGetReportsDatasets(limit, offset, datasetType, date, format);
print(response);
} catch on DioException (e) {
print('Exception when calling RadarDatasetsApi->radarGetReportsDatasets: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int | Limits the number of objects returned in the response. | [optional] [default to 5] |
| offset | int | Skips the specified number of objects before fetching the results. | [optional] |
| datasetType | String | Filters results by dataset type. | [optional] [default to 'RANKING_BUCKET'] |
| date | Date | Filters results by the specified date. | [optional] |
| format | String | Format in which results will be returned. | [optional] |
RadarGetReportsDatasets200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RadarPostReportsDatasetDownloadUrl200Response radarPostReportsDatasetDownloadUrl(format, radarPostReportsDatasetDownloadUrlRequest)
Get dataset download URL
Retrieves an URL to download a single dataset.
import 'package:cloudflare_dart/api.dart';
// TODO Configure API key authorization: api_key
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_key').apiKeyPrefix = 'Bearer';
// TODO Configure API key authorization: api_email
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKey = 'YOUR_API_KEY';
// uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//defaultApiClient.getAuthentication<ApiKeyAuth>('api_email').apiKeyPrefix = 'Bearer';
final api = CloudflareDart().getRadarDatasetsApi();
final String format = json; // String | Format in which results will be returned.
final RadarPostReportsDatasetDownloadUrlRequest radarPostReportsDatasetDownloadUrlRequest = ; // RadarPostReportsDatasetDownloadUrlRequest |
try {
final response = api.radarPostReportsDatasetDownloadUrl(format, radarPostReportsDatasetDownloadUrlRequest);
print(response);
} catch on DioException (e) {
print('Exception when calling RadarDatasetsApi->radarPostReportsDatasetDownloadUrl: $e\n');
}| Name | Type | Description | Notes |
|---|---|---|---|
| format | String | Format in which results will be returned. | [optional] |
| radarPostReportsDatasetDownloadUrlRequest | RadarPostReportsDatasetDownloadUrlRequest | [optional] |
RadarPostReportsDatasetDownloadUrl200Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]