@SuppressWarnings("unchecked")
	public <T> T apiRequest(String url, T classObject) {
		try {
			URL apiURL = new URL(this.apiUrl + url);
			URLConnection conn = apiURL.openConnection();
			conn.setRequestProperty("User-Agent", this.userAgent);
			InputStream is = conn.getInputStream();
			Serializer serializer = new Persister();
			classObject = (T) serializer.read(classObject.getClass(), is, false);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return classObject;
	}