@@ -0,0 +1,1075 @@
+/**%0A * Traq desktop application.%0A *%0A * @author Jack Polgar %3Cjack@polgar.id.au%3E%0A * @license Apache-2.0%0A */%0A%0Apackage traq;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.InputStreamReader;%0Aimport java.net.HttpURLConnection;%0Aimport java.net.URL;%0A%0Aimport com.google.gson.JsonElement;%0Aimport com.google.gson.JsonParser;%0A%0A/**%0A * API class.%0A */%0Apublic class API %7B%0A    /**%0A     * Fetch a JSON response from the URL.%0A     *%0A     * @param siteUrl URL to fetch from%0A     *%0A     * @return JsonElement%0A     *%0A     * @throws IOException%0A     */%0A    public static JsonElement fetch(String siteUrl) throws IOException %7B%0A        URL url = new URL(siteUrl);%0A        HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();%0A        httpURLConnection.addRequestProperty(%22User-Agent%22, %22Mozilla/4.0 TraqDesktop/1.0%22);%0A        httpURLConnection.connect();%0A%0A        JsonParser jsonParser = new JsonParser();%0A        JsonElement root = jsonParser.parse(new InputStreamReader((InputStream)httpURLConnection.getContent()));%0A%0A        return root;%0A    %7D%0A%7D%0A

Add API class to easily interact with the Traq API.