Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lindar-open/thunderkick-client
Thunderkick Java Client
https://github.com/lindar-open/thunderkick-client
Last synced: 5 days ago
JSON representation
Thunderkick Java Client
- Host: GitHub
- URL: https://github.com/lindar-open/thunderkick-client
- Owner: lindar-open
- License: apache-2.0
- Created: 2017-04-27T13:44:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-10T08:48:13.000Z (4 months ago)
- Last Synced: 2024-07-10T10:37:20.286Z (4 months ago)
- Language: Java
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# thunderkick-client
Thunderkick Casino API client written in JavaSupports the account endpoints and the free rounds template and assignments.
Some Examples (more to come):
**Build**
``` java
Thunderkick thunderkick = Thunderkick.build(accessCredentials); // OR
Thunderkick thunderkick = Thunderkick.build(apiUrl, operatorId, username, password);
```**Get or Search for Free Rounds Template**
``` java
Result template = thunderkick.freeRoundsTemplate().get(templateRef);FreeRoundsTemplateSearchQuery searchQuery = new FreeRoundsTemplateSearchQuery();
LocalDateTime sixMonthsAgo = LocalDateTime.now().minusMonths(6);
searchQuery.setCreationDateFrom(fromLocalDate(sixMonthsAgo));
Result templates = thunderkick.freeRoundsTemplate().search(searchQuery);
```**Assign or Search for Assignments**
``` java
String playerRef = "myRef";
String templateRef = "templateRef";
String playerTemplateRef = playerRef + templateRef;FreeRoundsTemplatePlayerAssignment freeRoundsTemplatePlayerAssignment = new FreeRoundsTemplatePlayerAssignment(fromLocalDate(LocalDateTime.now()), fromLocalDate(LocalDateTime.now().plusMonths(1)), templateRef);
// assign to player
Result assignment = thunderkick.freeRounds().assignByPlayerRef(playerRef, playerTemplateRef, freeRoundsTemplatePlayerAssignment);// view player assignments
Result assignments = thunderkick.freeRounds().getPlayerAssignmentsByPlayerRef(playerRef, false);
```Note: When there's an error the Result class contains the message and error code.
Usage:
```xml
com.lindar
thunderkick-client
1.0.0```