2.8 KiB

mycoreapi.api.OddApi

Load the API package

import 'package:mycoreapi/api.dart';

All URIs are relative to https://localhost:5001

Method HTTP request Description
oddGetAll GET /api/odd/{oddRequest} Get odds for one country and one odd value maximum
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

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

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

oddGetForCountry

List oddGetForCountry(id, oddRequest)

Get odds for one country and one odd value maximum

Example

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

Authorization

bearer

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]