import 'package:halo_client/api.dart';
All URIs are relative to http://localhost:8091
Method | HTTP request | Description |
---|---|---|
count | POST /apis/api.halo.run/v1alpha1/trackers/counter | |
downvote | POST /apis/api.halo.run/v1alpha1/trackers/downvote | |
upvote | POST /apis/api.halo.run/v1alpha1/trackers/upvote |
count(counterRequest)
Count an extension resource visits.
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getMetricsV1alpha1PublicApi();
final CounterRequest counterRequest = ; // CounterRequest |
try {
api.count(counterRequest);
} catch on DioException (e) {
print('Exception when calling MetricsV1alpha1PublicApi->count: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
counterRequest | CounterRequest |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
downvote(voteRequest)
Downvote an extension resource.
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getMetricsV1alpha1PublicApi();
final VoteRequest voteRequest = ; // VoteRequest |
try {
api.downvote(voteRequest);
} catch on DioException (e) {
print('Exception when calling MetricsV1alpha1PublicApi->downvote: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
voteRequest | VoteRequest |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
upvote(voteRequest)
Upvote an extension resource.
import 'package:halo_client/api.dart';
// TODO Configure HTTP basic authorization: basicAuth
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').username = 'YOUR_USERNAME'
//defaultApiClient.getAuthentication<HttpBasicAuth>('basicAuth').password = 'YOUR_PASSWORD';
final api = HaloClient().getMetricsV1alpha1PublicApi();
final VoteRequest voteRequest = ; // VoteRequest |
try {
api.upvote(voteRequest);
} catch on DioException (e) {
print('Exception when calling MetricsV1alpha1PublicApi->upvote: $e\n');
}
Name | Type | Description | Notes |
---|---|---|---|
voteRequest | VoteRequest |
void (empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]