# mycore_api.api.OddApi ## Load the API package ```dart import 'package:mycore_api/api.dart'; ``` All URIs are relative to *https://localhost:5001* 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 oddGetAll(oddRequest) Get odds for one country and one odd value maximum ### Example ```dart import 'package:mycore_api/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('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.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 oddGetForCountry(id, oddRequest) Get odds for one country and one odd value maximum ### Example ```dart import 'package:mycore_api/api.dart'; // TODO Configure OAuth2 access token for authorization: bearer //defaultApiClient.getAuthentication('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.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)