Alternative MODEUS API
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 0.1.0-alpha.2
- Build package: org.openapitools.codegen.languages.DartDioNextClientCodegen
- Dart 2.12.0 or later OR Flutter 1.26.0 or later
- Dio 4.0.0+
To use the package from pub.dev, please include the following in pubspec.yaml
dependencies:
amodeus_api: 0.1.0-alpha.2
If this Dart package is published to Github, please include the following in pubspec.yaml
dependencies:
amodeus_api:
git:
url: https://github.com/GIT_USER_ID/GIT_REPO_ID.git
#ref: main
To use the package from your local drive, please include the following in pubspec.yaml
dependencies:
amodeus_api:
path: /path/to/amodeus_api
Please follow the installation procedure and then run the following:
import 'package:amodeus_api/amodeus_api.dart';
final api = AmodeusApi().getAuthApi();
final String username = username_example; // String |
final String password = password_example; // String |
final String grantType = grantType_example; // String |
final String scope = scope_example; // String |
final String clientId = clientId_example; // String |
final String clientSecret = clientSecret_example; // String |
try {
final response = await api.login(username, password, grantType, scope, clientId, clientSecret);
print(response);
} catch on DioError (e) {
print("Exception when calling AuthApi->login: $e\n");
}
All URIs are relative to https://api.amodeus.evgfilim1.me
Class | Method | HTTP request | Description |
---|---|---|---|
AuthApi | login | POST /auth | Login |
AuthApi | reauth | POST /reauth | Reauth |
SearchApi | getPerson | GET /person/{uuid} | Get Person |
SearchApi | search | GET /search | Search |
TimetableApi | getEventTeam | GET /event/{event_id}/team | Get Event Team |
TimetableApi | getMyTimetable | GET /timetable | Get Timetable |
TimetableApi | getPersonTimetable | GET /person/{uuid}/timetable | Get Person Timetable |
- Type: OAuth
- Flow: password
- Authorization URL:
- Scopes: N/A