mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 17:51:20 +00:00
104 lines
2.8 KiB
Markdown
104 lines
2.8 KiB
Markdown
# mycoreapi.api.OddApi
|
|
|
|
## Load the API package
|
|
```dart
|
|
import 'package:mycoreapi/api.dart';
|
|
```
|
|
|
|
All URIs are relative to *http://localhost:25049*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**oddGetAll**](OddApi.md#oddgetall) | **GET** /api/odd/{oddRequest} | Get odds for one country and one odd value maximum
|
|
[**oddGetForCountry**](OddApi.md#oddgetforcountry) | **GET** /api/odd/country/{id}/{oddRequest} | Get odds for one country and one odd value maximum
|
|
|
|
|
|
# **oddGetAll**
|
|
> List<OddNice> oddGetAll(oddRequest)
|
|
|
|
Get odds for one country and one odd value maximum
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:mycoreapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = OddApi();
|
|
final oddRequest = 1.2; // double | Odd Maximum value
|
|
|
|
try {
|
|
final result = api_instance.oddGetAll(oddRequest);
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling OddApi->oddGetAll: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**oddRequest** | **double**| Odd Maximum value |
|
|
|
|
### Return type
|
|
|
|
[**List<OddNice>**](OddNice.md)
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
|
|
# **oddGetForCountry**
|
|
> List<OddNice> oddGetForCountry(id, oddRequest)
|
|
|
|
Get odds for one country and one odd value maximum
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:mycoreapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = OddApi();
|
|
final id = id_example; // String | id of country, e.g = BE for Belgium
|
|
final oddRequest = 1.2; // double | Odd Maximum value
|
|
|
|
try {
|
|
final result = api_instance.oddGetForCountry(id, oddRequest);
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling OddApi->oddGetForCountry: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**id** | **String**| id of country, e.g = BE for Belgium |
|
|
**oddRequest** | **double**| Odd Maximum value |
|
|
|
|
### Return type
|
|
|
|
[**List<OddNice>**](OddNice.md)
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
|