fleet_app_client
A crystal API client to interact with the Hostari fleet.
Installation
-
Add the dependency to your
shard.yml
:dependencies: fleet_app_client: github: hostari/fleet_app_client
-
Run
shards install
Usage
require "fleet_app_client"
Build a new FleetApp client.
client = FleetApp::Client.new
Resource Methods
Start a Server
FleetApp::Server.start("2012197.xyz", "valheim", "1234")
Stop a Server
FleetApp::Server.stop("2012197.xyz", "valheim", "1234")
Restart a Server
FleetApp::Server.restart("2012197.xyz", "valheim", "1234")
Create a Server
FleetApp::Server.create("2012197.xyz", "valheim", "1234")
Get Server Details (For Other Games)
FleetApp::Server.get_details("2012197.xyz", "valheim", "1234")
Get CoreKeeper Game ID
FleetApp::Server.get_details("2012197.xyz", "core_keeper", "1234")
Contributing
- Fork it (https://github.com/your-github-user/fleet_app_client/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Pauline De Polonia - creator
- Manuel Tinio - maintainer
- Xavi Ablaza - maintainer
- Rafael Cadorna - maintainer