https://github.com/flix-tech/public-api-java-examples
This is the Java example code FlixMobility provides for the Public API.
https://github.com/flix-tech/public-api-java-examples
Last synced: over 1 year ago
JSON representation
This is the Java example code FlixMobility provides for the Public API.
- Host: GitHub
- URL: https://github.com/flix-tech/public-api-java-examples
- Owner: flix-tech
- Created: 2020-02-13T09:11:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-11-15T23:55:41.000Z (over 3 years ago)
- Last Synced: 2025-02-14T04:51:12.496Z (over 1 year ago)
- Language: Java
- Size: 52.7 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is the Java example code FlixMobility provides for the Public API.
Please refer to the online documentation we provide on our
[Developer Portal](https://developer.flix.tech/).
# Dependencies
- Java 11
- Maven
# Quick start
1. Replace the values of INTEGRATION_EMAIL, INTEGRATION_PASSWORD and
INTEGRATION_TOKEN in
/src/main/java/com.flixbus.api.util.ExampleCodeHelper with your credentials.
2. Run the main method in /src/main/java/com.flixbus.api.SearchExample.
# How to use the examples
The examples reflect use cases like Search and Booking which includes
necessary steps like authentication or getting passenger details. So if you
are specifically looking for an example on how to accomplish authentication
for instance you can find this in the code of those examples.
We provide the example code in order to reduce your effort during the
implementation of your client. You might want to consider to use the classes
in package com.flixbus.api.domain as is since the deserialization from api
responses works out of the box (using the Jackson library).
However we do not make any warranties about the completeness of the code.
You will need to implement your client due to your business requirements.