# FlexLib
Java Wrapper for FlexPlex API
## Maven
```xml
jitpack.io
https://jitpack.io
fi.jonttu.git.FlexPlex
FlexLib
Version
```
### Dependencies
```xml
com.neovisionaries
nv-websocket-client
2.14
com.google.code.gson
gson
2.8.9
```
## Example
```java
// Instantiate FlexLib, this should be done only once and instance saved.
final FlexLib flexLib = new FlexLib()
.setToken("a06ccc622e2976b1d1e28145ebdc2ab408f3fc5ca0f5f4ee09d40b91ba0e903c")
.addListener(new FlexLibAdapter());
flexLib.start();
// Get friends API if its available
final Optional playerFriends = getPlayerFriends("a2a20f04-b722-4192-b184-8e41f1080ead");
if (playerFriends.isPresent()) {
final Set friends = playerFriends.getFriends();
}
// Disables FlexLib
flexLib.disable();
```