Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.
/ FS19-Java-API Public archive

๐Ÿšœ FS19 Java API is an utility for Farming Simulator 2019 Dedicated servers.

Notifications You must be signed in to change notification settings

TheCoati/FS19-Java-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

FS19 Java API

FS19 Java API is an utility for Farming Simulator 2019 Dedicated servers.
The Java API provides easy access to the API and read data related to the dedicated server.


Endpoints

  • Server Data ( /feed/dedicated-server-stats.xml )
  • Map image ( /feed/dedicated-server-stats.xml )
  • Career SaveGame ( /feed/dedicated-server-stats-map.jpg )
  • Vehicles Data ( /feed/dedicated-server-savegame.html&file=vehicles )
  • Economy Data ( /feed/dedicated-server-savegame.html&file=economy )

Usage

Step 1
Go to your Dedicated server settings. Alt text

Step 2
Take note of the TLD or IP with port and the code tailing the URL. Alt text

Step 3
Create a new FarmingAPI instance with the required parameters.

 FarmingAPI api = new FarmingAPI("http://127.0.0.1:12700", "c532500b61a441858b7cb7ea930ba8be"); 

Step 4
Request the required data from the API.

try {
   System.out.println("Farmers online: " + api.getServer().getSlots().getNumUsed());
} catch (IOException e) {
   e.printStackTrace();
}

About

๐Ÿšœ FS19 Java API is an utility for Farming Simulator 2019 Dedicated servers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages