fleet_app_client v0.2.11
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
Repository
fleet_app_client
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- 5 months ago
- May 13, 2022
License
MIT License
Links
Synced at
Sun, 17 Nov 2024 14:38:08 GMT
Languages